Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
CurveTexture¶
Inherits: Texture2D < Texture < Resource < RefCounted < Object
A 1D texture where pixel brightness corresponds to points on a curve.
Description¶
A 1D texture where pixel brightness corresponds to points on a Curve resource, either in grayscale or in red. This visual representation simplifies the task of saving curves as image files.
If you need to store up to 3 curves within a single texture, use CurveXYZTexture instead. See also GradientTexture1D and GradientTexture2D.
Properties¶
resource_local_to_scene |
|
|
|
||
|
Enumerations¶
enum TextureMode:
TextureMode TEXTURE_MODE_RGB = 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.
TextureMode TEXTURE_MODE_RED = 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.
Property Descriptions¶
Curve curve
The Curve<