Type:TextureWrapMode

From Resonite Wiki
Revision as of 19:05, 11 February 2024 by PJB (talk | contribs) (Explain MirrorOnce, add Unity link)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

TextureWrapMode is a data type used by StaticTexture2D. It determines how the texture is mapped when it is applied to a Material and scaled.

TextureWrapMode has 4 options on both the U and V axis.

  • Repeat: The texture simply repeats to fill the space.
  • Clamp: The edges of the texture will be stretched to fill the space.
  • Mirror: The texture is repeated and mirrored to fill the space.
  • MirrorOnce: The texture is mirrored once around the zero coordinate, coordinates outside [-1..1] are clamped to edge.

See also