Browse Source

Merge pull request #13436 from Mugen87/dev3

Docs: Added .onBeforeCompile()
Mr.doob 7 years ago
parent
commit
71345e9e6b
1 changed files with 6 additions and 0 deletions
  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].
 		</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>
 		<div>
 		values -- a container with parameters.<br />