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...
GradientTexture1D
繼承: Texture2D < Texture < Resource < RefCounted < Object
使用從 Gradient 獲得的顏色的 1D 紋理。
說明
GradientTexture1D 使用一個 Gradient 來填充紋理資料。該漸變紋理將使用從漸變中獲得的顏色從左到右進行填充。這意味著該紋理不一定代表漸變的精確副本,而是以固定步長從漸變中獲得的樣本的插值(見 width)。另見 GradientTexture2D、CurveTexture 和 CurveXYZTexture。
屬性
resource_local_to_scene |
|
|
|
||
|
屬性說明
用於填充紋理的 Gradient。
如果為 true,則生成的紋理會支援高動態範圍(Image.FORMAT_RGBAF 格式)。可以在 Environment.glow_enabled 為 true 時實作輝光效果。如果為 false,則生成的紋理會使用低動態範圍;過亮的顏色會被鉗制(Image.FORMAT_RGBA8 格式)。
將從 Gradient 中獲得的顏色樣本的數量。