浏览代码

Merge pull request #13436 from Mugen87/dev3

Docs: Added .onBeforeCompile()
Mr.doob 7 年之前
父节点
当前提交
71345e9e6b
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      docs/api/materials/Material.html

+ 6 - 0
docs/api/materials/Material.html

@@ -308,6 +308,12 @@
 		These needs to be disposed by [page:Texture Texture].
 		These needs to be disposed by [page:Texture Texture].
 		</div>
 		</div>
 
 
+		<h3>[method:null onBeforeCompile]()</h3>
+		<div>
+		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.
+		</div>
+
 		<h3>[method:null setValues]( [param:object values] )</h3>
 		<h3>[method:null setValues]( [param:object values] )</h3>
 		<div>
 		<div>
 		values -- a container with parameters.<br />
 		values -- a container with parameters.<br />