Optional
key: string | symboldefine name
Optional
customDefines: anyobject for setting define value (like ShaderMaterial.defines), otherwise this.material.defines is taken
access this.defines instead of this.material.defines
Optional
onChange: ((...args) => any)function to call when the value changes. The function is called with the following parameters: [key, newVal]. Note: needsUpdate is set to true for this/material if onChange is not provided.
Rest
...args: any[]Optional
processVal: ((newVal) => any)function that processes the value before setting it.
Optional
invProcessVal: ((val) => any)function that processes the value before returning it.
Generated using TypeDoc
Decorator to create a three.js style define in this.material or this and bind to a property. see also - matDefineBool