Instance Property

wrapS

The wrapping behavior for the S texture coordinate.

Declaration

@property(nonatomic) SCNWrapMode wrapS;

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 SCNWrapModeClamp. See SCNWrapMode for available modes and their effects.

See Also

Configuring Texture Mapping Attributes

contentsTransform

The transformation applied to the material property’s visual contents. Animatable.

wrapT

The wrapping behavior for the T texture coordinate.

SCNWrapMode

Modes to apply to texture wrapping, used by the wrapT and wrapS properties.

minificationFilter

Texture filtering for rendering the material property’s image contents at a size smaller than that of the original image.

magnificationFilter

Texture filtering for rendering the material property’s image contents at a size larger than that of the original image.

mipFilter

Texture filtering for using mipmaps to render the material property’s image contents at a size smaller than that of the original image.

SCNFilterMode

Texture filtering modes, used by the minificationFilter, magnificationFilter, and mipFilter properties.

maxAnisotropy

The amount of anisotropic texture filtering to be used when rendering the material property’s image contents.

mappingChannel

The source of texture coordinates for mapping the material property’s image contents.

borderColor

A color used to fill in areas of a material’s surface not covered by the material property’s image contents.

Deprecated