Improve CurveTexture documentation

(cherry picked from commit 87f22083af)
This commit is contained in:
Hugo Locurcio 2022-06-13 14:06:34 +02:00 committed by Rémi Verschelde
parent 8f59e837a8
commit 49fc84da4a
2 changed files with 3 additions and 3 deletions

View File

@ -12,10 +12,10 @@
</methods>
<members>
<member name="curve" type="Curve" setter="set_curve" getter="get_curve">
The [code]curve[/code] rendered onto the texture.
The [Curve] that is rendered onto the texture.
</member>
<member name="width" type="int" setter="set_width" getter="get_width" default="2048">
The width of the texture.
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.
</member>
</members>
<constants>

View File

@ -4,7 +4,7 @@
Gradient-filled texture.
</brief_description>
<description>
GradientTexture uses a [Gradient] to fill the texture data. The gradient will be filled from left to right using colors obtained from the gradient. This means the texture does not necessarily represent an exact copy of the gradient, but instead an interpolation of samples obtained from the gradient at fixed steps (see [member width]).
GradientTexture uses a [Gradient] to fill the texture data. The gradient will be filled from left to right using colors obtained from the gradient. This means the texture does not necessarily represent an exact copy of the gradient, but instead an interpolation of samples obtained from the gradient at fixed steps (see [member width]). See also [CurveTexture].
</description>
<tutorials>
</tutorials>