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 条曲线上的点。
描述
一维纹理,红、绿、蓝通道分别对应 3 条单位 Curve 资源上的点。与使用单独的 CurveTexture 相比,可以简化将曲线保存为图像文件的任务。
如果你只需要在单张纹理中存储一条曲线,请改用 CurveTexture。另见 GradientTexture1D 和 GradientTexture2D。
属性
resource_local_to_scene |
|
|
|
属性说明
渲染到该纹理红色通道上的 Curve。应当为单位 Curve。
渲染到该纹理绿色通道上的 Curve。应当为单位 Curve。
渲染到该纹理蓝色通道上的 Curve。应当为单位 Curve。
纹理宽度(单位为像素)。较大的值能够更好地表示高频数据(例如方向的突变),但会增加生成时间和内存占用。