MaterialDefinition
MaterialDefinition:
object
Interface representing the definition of a material.
Type declaration
color
color:
THREE.Color
The color of the material
customId?
optionalcustomId:string
An optional custom ID for the material
depthTest?
optionaldepthTest:boolean
Whether to have depth test enabled when rendering this material.
Default
true
depthWrite?
optionaldepthWrite:boolean
Whether to write to the depth buffer. Set to false for transparent objects that shouldn't occlude other geometry
Default
true
localId?
optionallocalId:number
The local ID of the material
opacity
opacity:
number
The opacity of the material
preserveOriginalMaterial?
optionalpreserveOriginalMaterial:boolean
Internal flag to preserve base material properties when applying highlights. When true, only explicitly set properties (like color or opacity) are applied.
renderedFaces
renderedFaces:
RenderedFaces
The faces rendered by the material
transparent
transparent:
boolean
Whether the material is transparent