ReadonlyappliedThe initial value of Object.prototype.constructor is the standard built-in Object constructor.
ReadonlyisReadonlyisReadonlyisReadonlysetAn object that can be used to store custom data about the Material. It should not hold references to functions as these will not be cloned.
Static ReadonlyInterpolateStatic ReadonlyMaterialStatic ReadonlyTYPEStatic ReadonlyTypeReturn a new material with the same parameters as this material.
In case onBeforeCompile is used, this callback can be used to identify values of settings used in onBeforeCompile, so three.js can reuse a cached shader or recompile the shader as needed.
Optional_2: anyAn 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.
Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON().
This callback is only supported in WebGLRenderer (not WebGPURenderer).
WebGLRenderer context that is initializing the material
An optional callback that is executed immediately before the material is used to render a 3D object.
Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON().
This callback is only supported in WebGLRenderer (not WebGPURenderer).
Sets the values of this material based on the values of the passed material or an object with material properties The input is expected to be a valid material or a deserialized material parameters object(including the deserialized userdata)
material or material parameters object
Optional_: any
Objects in the scene that are using this material. This is set in the Object3DManager when the objects are added/removed from the scene. Do not modify this set directly.