A 2D texture that creates a pattern with colors obtained from a Gradient.
A 2D texture that obtains colors from a Gradient to fill the texture data. This texture is able to transform a color transition into different patterns such as a linear or a radial gradient. The texture is filled by interpolating colors starting from fill_from to fill_to offsets by default, but the gradient fill can be repeated to cover the entire texture.
The gradient is sampled individually for each pixel so it does not necessarily represent an exact copy of the gradient (see width and height). See also GradientTexture1D, CurveTexture and CurveXYZTexture.
The number of vertical color samples that will be obtained from the Gradient, which also represents the texture's height.
If true, the generated texture will support high dynamic range (Image.FORMAT_RGBAF format). This allows for glow effects to work if Environment.glow_enabled is true. If false, the generated texture will use low dynamic range; overbright colors will be clamped (Image.FORMAT_RGBA8 format).
The number of horizontal color samples that will be obtained from the Gradient, which also represents the texture's width.
FILL_LINEAR = 0The colors are linearly interpolated in a straight line.
FILL_RADIAL = 1The colors are linearly interpolated in a circular pattern.
FILL_SQUARE = 2The colors are linearly interpolated in a square pattern.
FILL_CONIC = 3The colors are linearly interpolated in a cone pattern.