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...
CurveXYZTexture¶
继承: Texture2D < Texture < Resource < RefCounted < Object
一维纹理,其中红色、绿色和蓝色通道分别对应 3 条曲线上的点。
描述¶
1D 纹理,其中红色、绿色和蓝色通道对应于 3 条 Curve 资源上的点。与使用单独的 CurveTexture 相比,这进一步简化了将曲线保存为图像文件的任务。
如果只需要在单个纹理中存储一条曲线,请改用 CurveTexture。另见 GradientTexture1D 和 GradientTexture2D。
属性¶
resource_local_to_scene |
|
|
|
属性说明¶
Curve curve_x
渲染到该纹理红色通道上的 Curve。
Curve curve_y
渲染到该纹理绿色通道上的 Curve。
Curve curve_z
渲染到该纹理蓝色通道上的 Curve。
int width = 256
纹理宽度(单位为像素)。较大的值能够更好地表示高频数据(例如方向的突变),但会增加生成时间和内存占用。