class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCountedResourceTextureTexture2D GradientTexture2D
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 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.

Enum Fill<>():Enum

FILL_LINEAR = 0

The colors are linearly interpolated in a straight line.


FILL_RADIAL = 1

The colors are linearly interpolated in a circular pattern.


FILL_SQUARE = 2

The colors are linearly interpolated in a square pattern.

Enum Repeat<>():Enum

REPEAT_NONE = 0

The gradient fill is restricted to the range defined by fill_from to fill_to offsets.


REPEAT = 1

The texture is filled starting from fill_from to fill_to offsets, repeating the same pattern in both directions.


REPEAT_MIRROR = 2

The texture is filled starting from fill_from to fill_to offsets, mirroring the pattern in both directions.

Fill fill<>():Fill

The gradient fill type, one of the Fill values. The texture is filled by interpolating colors starting from fill_from to fill_to offsets.

Vector2 fill_from<>():Vector2

The initial offset used to fill the texture specified in UV coordinates.

Vector2 fill_to<>():Vector2

The final offset used to fill the texture specified in UV coordinates.

Gradient gradient<>():Gradient

The Gradient used to fill the texture.

int height<>():int

The number of vertical color samples that will be obtained from the Gradient, which also represents the texture's height.

Repeat repeat<>():Repeat

The gradient repeat type, one of the Repeat values. The texture is filled starting from fill_from to fill_to offsets by default, but the gradient fill can be repeated to cover the entire texture.

bool use_hdr<>():bool

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).

int width<>():int

The number of horizontal color samples that will be obtained from the Gradient, which also represents the texture's width.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...