Platforms to show: All Mac Windows Linux Cross-Platform

Back to SCNMaterialPropertyMBS class.

Wrap Modes

SCNMaterialPropertyMBS.SCNWrapModeClamp = 1

Type Topic Plugin Version
const SceneKit MBS Mac64bit Plugin 19.1
One of the Modes to apply to texture wrapping, used by the wrapT and wrapS properties.

Texture coordinates are clamped to the range from 0.0 to 1.0, inclusive.
Texture sampling in areas whose texture coordinates would fall outside this range produces texel colors from the nearest edge of the texture image.

SCNMaterialPropertyMBS.SCNWrapModeClampToBorder = 3

Type Topic Plugin Version
const SceneKit MBS Mac64bit Plugin 19.1
One of the Modes to apply to texture wrapping, used by the wrapT and wrapS properties.

Texture sampling uses texture colors for coordinates in the range from 0.0 to 1.0 (inclusive) and the material property’s borderColor value otherwise.

Texture sampling in areas whose texture coordinates would fall outside this range uses the borderColor property instead of texel colors from the texture image.

SCNMaterialPropertyMBS.SCNWrapModeMirror = 4

Type Topic Plugin Version
const SceneKit MBS Mac64bit Plugin 19.1
One of the Modes to apply to texture wrapping, used by the wrapT and wrapS properties.

Texture sampling of texture coordinates outside range from 0.0 to 1.0 should behave as if the range reverses before repeating.

Texture sampling in areas of the material whose texture coordinates would fall outside from 0.0 to 1.0 results in tiling both texture image and its mirror image across the surface using the material.

SCNMaterialPropertyMBS.SCNWrapModeRepeat = 2

Type Topic Plugin Version
const SceneKit MBS Mac64bit Plugin 19.1
One of the Modes to apply to texture wrapping, used by the wrapT and wrapS properties.

Texture sampling uses only the fractional part of texture coordinates, passing through the range from 0.0 to (but not including) 1.0.

Texture sampling in areas of the material whose texture coordinates would fall outside from 0.0 to 1.0 results in tiling the texture image across the surface using the material.

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...