瀏覽代碼

Improve CurveTexture documentation

Hugo Locurcio 3 年之前
父節點
當前提交
87f22083af
共有 3 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      doc/classes/CurveTexture.xml
  2. 1 1
      doc/classes/GradientTexture.xml
  3. 1 1
      doc/classes/GradientTexture2D.xml

+ 2 - 2
doc/classes/CurveTexture.xml

@@ -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>

+ 1 - 1
doc/classes/GradientTexture.xml

@@ -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 [GradientTexture2D] and [CurveTexture].
 	</description>
 	<tutorials>
 	</tutorials>

+ 1 - 1
doc/classes/GradientTexture2D.xml

@@ -4,7 +4,7 @@
 		Gradient-filled 2D texture.
 	</brief_description>
 	<description>
-		The texture uses a [Gradient] to fill the texture data in 2D space. The gradient is filled according to the specified [member fill] and [member repeat] types using colors obtained from the gradient. 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] and [member height]).
+		The texture uses a [Gradient] to fill the texture data in 2D space. The gradient is filled according to the specified [member fill] and [member repeat] types using colors obtained from the gradient. 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] and [member height]). See also [GradientTexture] and [CurveTexture].
 	</description>
 	<tutorials>
 	</tutorials>