文档

Unity Engine

Unity Engine

AddressMode

Specifies how the gradient is sampled when UV coordinates are outside the [0, 1] range.
阅读时间1 分钟最后更新于 1 个月前

Definition

public enum AddressMode

Remarks

AddressMode.Wrap repeats the gradient, creating a tiled effect. AddressMode.Clamp extends the edge colors of the gradient beyond the [0, 1] range. AddressMode.Mirror repeats the gradient, but mirrors it at every integer boundary, creating a seamless mirrored tiling.

Fields

Value

Description

ClampExtends the edge colors of the gradient beyond the [0, 1] range.
MirrorRepeats the gradient, but mirrors it at every integer boundary, creating a seamless mirrored tiling.
WrapRepeats the gradient when sampling outside the [0, 1] range, creating a tiled effect.