提交 3041f238 编写于 作者: M Mugen87

Docs: Add note about onBeforeCompile().

上级 acea95a1
...@@ -342,6 +342,9 @@ ...@@ -342,6 +342,9 @@
An optional callback that is executed immediately before the shader program is compiled. 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. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials.
</p> </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> <h3>[method:null setValues]( [param:object values] )</h3>
<p> <p>
......
...@@ -291,6 +291,9 @@ Defines whether this material is tone mapped according to the renderer's [page:W ...@@ -291,6 +291,9 @@ Defines whether this material is tone mapped according to the renderer's [page:W
<h3>[method:null onBeforeCompile]( [param:Shader shader], [param:WebGLRenderer renderer] )</h3> <h3>[method:null onBeforeCompile]( [param:Shader shader], [param:WebGLRenderer renderer] )</h3>
<p> 在编译shader程序之前立即执行的可选回调。此函数使用shader源码作为参数。用于修改内置材质。 <p> 在编译shader程序之前立即执行的可选回调。此函数使用shader源码作为参数。用于修改内置材质。
</p> </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> <h3>[method:null setValues]( [param:object values] )</h3>
<p> values -- 具有参数的容器。 <p> values -- 具有参数的容器。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册