diff options
author | reduz <reduzio@gmail.com> | 2021-07-01 15:25:35 -0300 |
---|---|---|
committer | reduz <reduzio@gmail.com> | 2021-07-03 12:11:01 -0300 |
commit | d6893cb2e87796336a3c195a1df10057c21dfbca (patch) | |
tree | c6f25ad40a68e95014ff96bf5fc7b02aa582c613 /doc/classes/CurveTexture.xml | |
parent | ad8a2b3d527f821d1a0b061811661d49d0920967 (diff) | |
download | redot-engine-d6893cb2e87796336a3c195a1df10057c21dfbca.tar.gz |
Implement Curve3Texture
* This was required by users in some scenarios, such as animating individual axes over time with a single texture.
* Examples: Shaders, Particles, etc.
* CurveTexture now defaults to RGB, can be changed to Red if needed, this allows to freely exchange them.
Diffstat (limited to 'doc/classes/CurveTexture.xml')
-rw-r--r-- | doc/classes/CurveTexture.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/classes/CurveTexture.xml b/doc/classes/CurveTexture.xml index bc6b69d2d1..54065fe0f9 100644 --- a/doc/classes/CurveTexture.xml +++ b/doc/classes/CurveTexture.xml @@ -14,10 +14,16 @@ <member name="curve" type="Curve" setter="set_curve" getter="get_curve"> The [code]curve[/code] rendered onto the texture. </member> + <member name="texture_mode" type="int" setter="set_texture_mode" getter="get_texture_mode" enum="CurveTexture.TextureMode" default="0"> + </member> <member name="width" type="int" setter="set_width" getter="get_width" default="2048"> The width of the texture. </member> </members> <constants> + <constant name="TEXTURE_MODE_RGB" value="0" enum="TextureMode"> + </constant> + <constant name="TEXTURE_MODE_RED" value="1" enum="TextureMode"> + </constant> </constants> </class> |