Skip to content
0.2.0-dev Download ZIP
27 lines ·1.8 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="CurveXYZTexture" inherits="Texture2D" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 A 1D texture where the red, green, and blue color channels correspond to points on 3 curves.
5 </brief_description>
6 <description>
7 A 1D texture where the red, green, and blue color channels correspond to points on 3 unit [Curve] resources. Compared to using separate [CurveTexture]s, this further simplifies the task of saving curves as image files.
8 If you only need to store one curve within a single texture, use [CurveTexture] instead. See also [GradientTexture1D] and [GradientTexture2D].
9 </description>
10 <tutorials>
11 </tutorials>
12 <members>
13 <member name="curve_x" type="Curve" setter="set_curve_x" getter="get_curve_x">
14 The [Curve] that is rendered onto the texture's red channel. Should be a unit [Curve].
15 </member>
16 <member name="curve_y" type="Curve" setter="set_curve_y" getter="get_curve_y">
17 The [Curve] that is rendered onto the texture's green channel. Should be a unit [Curve].
18 </member>
19 <member name="curve_z" type="Curve" setter="set_curve_z" getter="get_curve_z">
20 The [Curve] that is rendered onto the texture's blue channel. Should be a unit [Curve].
21 </member>
22 <member name="resource_local_to_scene" type="bool" setter="set_local_to_scene" getter="is_local_to_scene" overrides="Resource" default="false" />
23 <member name="width" type="int" setter="set_width" getter="get_width" default="256">
24 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.
25 </member>
26 </members>
27</class>