Skip to content

Commit

Permalink
Merge pull request #20678 from Mugen87/dev44
Browse files Browse the repository at this point in the history
Docs: Clarify usage of WebGLRenderer.info.
  • Loading branch information
mrdoob committed Nov 12, 2020
2 parents ebd43ff + fd1ceaa commit 786b674
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docs/api/en/renderers/WebGLRenderer.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,13 @@ <h3>[property:Object info]</h3>
</li>
</ul>
</p>
<p>By default these data are reset at each render calls, but when using the composer or mirrors it can be preferred to reset them with a custom pattern :
<p>By default these data are reset at each render call but when having multiple render passes per frame (e.g. when using post processing) it can be preferred to reset with a custom pattern.
First, set *autoReset* to *false*.
<code>
renderer.info.autoReset = false;
</code>
Call *reset()* whenever you have finished to render a single frame.
<code>
renderer.info.reset();
</code>
</p>
Expand Down
6 changes: 5 additions & 1 deletion docs/api/zh/renderers/WebGLRenderer.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,13 @@ <h3>[property:Object info]</h3>
</li>
</ul>
</p>
<p>默认情况下,每次调用渲染时这些数据都会重置。 但当时用一个或多个镜像时,最好使用自定义模式重置它们:
<p>By default these data are reset at each render call but when having multiple render passes per frame (e.g. when using post processing) it can be preferred to reset with a custom pattern.
First, set *autoReset* to *false*.
<code>
renderer.info.autoReset = false;
</code>
Call *reset()* whenever you have finished to render a single frame.
<code>
renderer.info.reset();
</code>
</p>
Expand Down

0 comments on commit 786b674

Please sign in to comment.