Readonly
appliedManaged internally, do not change manually
The initial value of Object.prototype.constructor is the standard built-in Object constructor.
Optional
generatorManaged internally, do not change manually
Readonly
isMaterial name. Default is an empty string.
Readonly
setStatic
Readonly
MaterialStatic
MaterialStatic
Readonly
TYPEStatic
Readonly
TypeFire an event type.
The event that gets fired.
Deserializes the material from JSON. Note: some properties that are not serialized in Material.toJSON when they are default values (like side, alphaTest, blending, maps), they wont be reverted back if not present in JSON If _internal = true, Textures should be loaded and in meta.textures before calling this method.
Optional
meta: SerializationMetaTypeAn 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.
Source code of the shader
WebGLRenderer Context that is initializing the material
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
if true, the type of the oldMaterial is not checked. Objects without type are always allowed.
if undefined, then depends on material.isMaterial. if true, the current userdata is cleared before setting the new values, because it can have data which wont be overwritten if not present in the new material.
Serializes this material to JSON.
Optional
meta: SerializationMetaTypemetadata for serialization
Calls only super.toJSON, does internal three.js serialization and
And extension of three.js LineMaterial that can be assigned to lines, and support threepipe features, uiconfig, and serialization.