TEXTURE_MODE_RGB:null = 0
Store the curve equally across the red, green and blue channels. This uses more video memory, but is more compatible with shaders that only read the green and blue values.
TEXTURE_MODE_RED:null = 1
Store the curve only in the red channel. This saves video memory, but some custom shaders may not be able to work with this.
set getCurve curve<>():Curve set get
The Curve that is rendered onto the texture. Should be a unit Curve.
set getbool resource_local_to_scene<>():bool set get set getint texture_mode<>():int set get
The format the texture should be generated with. When passing a CurveTexture as an input to a Shader, this may need to be adjusted.
set getint width<>():int set get
The width of the texture (in pixels). Higher values make it possible to represent high-frequency data better (such as sudden direction changes), at the cost of increased generation time and memory usage.
All social media brands are registrated trademarks and belong to their respective owners.