提交 59679e3a 编写于 作者: A abiro

Fixed 'clear' method's description

WebGLRenderer's documentation incorrectly stated that if no parameters were passed to it, the 'clear' method will not clear any buffers. The default behaviour is in fact the opposite: if an argument is undefined, the corresponding buffer will be cleared. The document now correctly describes the default behaviour.
Source code of the method: https://github.com/mrdoob/three.js/blob/master/src/renderers/WebGLRenderer.js#L368
上级 d14551fa
......@@ -218,7 +218,7 @@
<h3>.clear( [page:Boolean color], [page:Boolean depth], [page:Boolean stencil] )</h3>
<div>Tells the renderer to clear its color, depth or stencil drawing buffer(s).</div>
<div>If no parameters are passed, no buffer will be cleared.</div>
<div>Arguments default to true.</div>
<h3>.addPostPlugin( plugin )</h3>
<div>Initialises the postprocessing plugin, and adds it to the renderPluginsPost array.</div>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册