Optionalfactor: Immutable<SRGBColor>Optionaltexture: ResourceHandle<Texture>Property that returns true if the texture property has a valid texture associated with it.
The texture reference.
Copies all properties defined by the prototype of SRGBColorTextureProperty from other to this instance.
Clones this instance and returns a new SRGBColorTextureProperty with identical values.
StaticisCompares whether both texture properties contains the same values.
The left hand-side operand.
The right hand-side operand.
True if both properties are equal.
StaticwithCreates a new color texture property with separated RGBA components.
Red component, in range [0, 1].
Green component, in range [0, 1].
Blue component, in range [0, 1].
Alpha component, in range [0, 1].
The SRGBColorTextureProperty implements a texture property of a SRGB color. The class follows the 'copy-on-write' pattern, which means that every operation returns a copy of the property with updated values. It also implies that the values of the property cannot be directly modified.
The concept of immutability improves sharing of objects as all types in TypeScript are assigned by identity, instead of by-value (e.g. a copy) as in other programming languages like C.