Sfoglia il codice sorgente

onBeforeCompile doc

sunag 7 anni fa
parent
commit
da321580e6
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  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]( [param:Object shader], [param:WebGLRenderer renderer] )</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 />