You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -266,6 +268,13 @@ export class Material extends EventDispatcher {
266
268
*/
267
269
dispose(): void;
268
270
271
+
/**
272
+
* 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.
273
+
* @param shader Source code of the shader
274
+
* @param renderer WebGLRenderer Context that is initializing the material
0 commit comments