@@ -126,6 +127,12 @@ export class Material extends EventDispatcher {
*/
colorWrite:boolean;
/**
* Custom defines to be injected into the shader. These are passed in form of an object literal, with key/value pairs. { MY_CUSTOM_DEFINE: '' , PI2: Math.PI * 2 }.
* The pairs are defined in both vertex and fragment shaders. Default is undefined.
*/
defines:any;
/**
* Which depth function to use. Default is {@link LessEqualDepth}. See the depth mode constants for all possible values.