Contents

wrapS

The wrapping behavior for the S texture coordinate.

Declaration

var wrapS: SCNWrapMode { get set }

Discussion

Wrapping modes determine texture mapping behavior for cases where a material’s texture coordinates extend outside the range from 0.0 to 1.0. For example, if you use the contentsTransform property to shrink a texture relative to the surface of a geometry, you use the wrap mode properties to determine whether the texture repeats across the surface.

The S texture coordinate measures the horizontal axis of a texture image, increasing from 0.0 at the left edge of the image to 1.0 at the right edge.

The default wrap mode is SCNWrapMode.clamp. See SCNWrapMode for available modes and their effects.

See Also

Configuring Texture Mapping Attributes