Class MaterialDefines
Hierarchy
- MaterialDefines
Indexable
Index
Constructors
constructor
Creates a new instance
Parameters
Optional externalProperties: {}
list of external properties to inject into the object
[name: string]: { default: any; type: string }
default: any
type: string
Returns MaterialDefines
Accessors
is Dirty
Specifies if the material needs to be re-calculated
Returns boolean
Methods
clone ToSearch playground for cloneTo
Clones this instance's defines to another instance
Parameters
other: MaterialDefines
material defines to clone values to
Returns void
is EqualSearch playground for isEqual
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)
mark All As DirtySearch playground for markAllAsDirty
Marks the material to indicate all of its defines need to be re-calculated
Returns void
mark As Attributes DirtySearch playground for markAsAttributesDirty
Marks the attribute state as changed
Returns void
mark As Fresnel DirtySearch playground for markAsFresnelDirty
Marks the fresnel state as changed
Returns void
mark As Image Processing DirtySearch playground for markAsImageProcessingDirty
Marks the material to indicate that image processing needs to be re-calculated
Returns void
mark As Light DirtySearch playground for markAsLightDirty
Marks the material to indicate the lights need to be re-calculated
Parameters
Optional disposed: boolean
Defines whether the light is dirty due to dispose or not
Returns void
mark As Misc DirtySearch playground for markAsMiscDirty
Marks the misc state as changed
Returns void
mark As Pre Pass DirtySearch playground for markAsPrePassDirty
Marks the prepass state as changed
Returns void
mark As ProcessedSearch playground for markAsProcessed
Marks the material to indicate that it has been re-calculated
Returns void
mark As Textures DirtySearch playground for markAsTexturesDirty
Marks the texture state as changed
Returns void
mark As UnprocessedSearch playground for markAsUnprocessed
Marks the material to indicate that it needs to be re-calculated
Returns void
rebuildSearch playground for rebuild
Rebuilds the material defines
Returns void
resetSearch playground for reset
Resets the material define values
Returns void
to StringSearch playground for toString
Converts the material define values to a string
Returns string
- String of material define information
Manages the defines for the Material