Skip to content

Commit

Permalink
Merge pull request #17672 from Mugen87/dev39
Browse files Browse the repository at this point in the history
Docs: Add note about onBeforeCompile().
  • Loading branch information
mrdoob authored Oct 6, 2019
2 parents f9630d6 + 3041f23 commit 87faa70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/api/en/materials/Material.html
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ <h3>[method:null onBeforeCompile]( [param:Shader shader], [param:WebGLRenderer r
An optional callback that is executed immediately before the shader program is compiled.
This function is called with the shader source code as a parameter. Useful for the modification of built-in materials.
</p>
<p>
Unlike properties, the callback is not supported by [page:Material.clone .clone](), [page:Material.copy .copy]() and [page:Material.toJSON .toJSON]().
</p>

<h3>[method:null setValues]( [param:object values] )</h3>
<p>
Expand Down
3 changes: 3 additions & 0 deletions docs/api/zh/materials/Material.html
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,9 @@ <h3>[method:null dispose]()</h3>
<h3>[method:null onBeforeCompile]( [param:Shader shader], [param:WebGLRenderer renderer] )</h3>
<p> 在编译shader程序之前立即执行的可选回调。此函数使用shader源码作为参数。用于修改内置材质。
</p>
<p>
Unlike properties, the callback is not supported by [page:Material.clone .clone](), [page:Material.copy .copy]() and [page:Material.toJSON .toJSON]().
</p>

<h3>[method:null setValues]( [param:object values] )</h3>
<p> values -- 具有参数的容器。
Expand Down

0 comments on commit 87faa70

Please sign in to comment.