Class MaterialDefines
Indexable
-
[id: string]: any
Constructors
constructor
-
new MaterialDefines(
externalProperties?: { [name: string]: { default: any; type: string } },
): MaterialDefinesCreates a new instance
Parameters
OptionalexternalProperties: { [name: string]: { default: any; type: string } }list of external properties to inject into the object
Returns MaterialDefines
Accessors
is Dirty
-
get isDirty(): boolean
Specifies if the material needs to be re-calculated
Returns boolean
Methods
clone To
-
Clones this instance's defines to another instance
Parameters
- other: MaterialDefines
material defines to clone values to
Returns void
- other: MaterialDefines
is Equal
-
Specifies if two material defines are equal
Parameters
- other: MaterialDefines
A material define instance to compare to
Returns boolean
- Boolean indicating if the material defines are equal (true) or not (false)
- other: MaterialDefines
mark All As Dirty
-
Marks the material to indicate all of its defines need to be re-calculated
Returns void
mark As Attributes Dirty
-
Marks the attribute state as changed
Returns void
mark As Fresnel Dirty
-
Marks the fresnel state as changed
Returns void
mark As Image Processing Dirty
-
Marks the material to indicate that image processing needs to be re-calculated
Returns void
mark As Light Dirty
-
Marks the material to indicate the lights need to be re-calculated
Parameters
- disposed: boolean = false
Defines whether the light is dirty due to dispose or not
Returns void
- disposed: boolean = false
mark As Misc Dirty
-
Marks the misc state as changed
Returns void
mark As Pre Pass Dirty
-
Marks the prepass state as changed
Returns void
mark As Processed
-
Marks the material to indicate that it has been re-calculated
Returns void
mark As Textures Dirty
-
Marks the texture state as changed
Returns void
mark As Unprocessed
-
Marks the material to indicate that it needs to be re-calculated
Returns void
rebuild
-
Rebuilds the material defines
Returns void
reset
-
Resets the material define values
Returns void
to String
-
Converts the material define values to a string
Returns string
- String of material define information
Manages the defines for the Material