diff --git a/docs/api/en/materials/Material.html b/docs/api/en/materials/Material.html index 55a58aa64a7617..aa25a9eb6f1bb6 100644 --- a/docs/api/en/materials/Material.html +++ b/docs/api/en/materials/Material.html @@ -342,6 +342,9 @@

[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.

+

+ Unlike properties, the callback is not supported by [page:Material.clone .clone](), [page:Material.copy .copy]() and [page:Material.toJSON .toJSON](). +

[method:null setValues]( [param:object values] )

diff --git a/docs/api/zh/materials/Material.html b/docs/api/zh/materials/Material.html index db112fb9a952da..b1f53dcacc1924 100644 --- a/docs/api/zh/materials/Material.html +++ b/docs/api/zh/materials/Material.html @@ -291,6 +291,9 @@

[method:null dispose]()

[method:null onBeforeCompile]( [param:Shader shader], [param:WebGLRenderer renderer] )

在编译shader程序之前立即执行的可选回调。此函数使用shader源码作为参数。用于修改内置材质。

+

+Unlike properties, the callback is not supported by [page:Material.clone .clone](), [page:Material.copy .copy]() and [page:Material.toJSON .toJSON](). +

[method:null setValues]( [param:object values] )

values -- 具有参数的容器。