Global Variable

SCNGeometrySourceSemanticTexcoord

The semantic for texture coordinate data.

Declaration

const SCNGeometrySourceSemantic SCNGeometrySourceSemanticTexcoord;

Discussion

For a geometry source, this semantic identifies data containing texture mapping coordinates for each vertex in the geometry. Unlike other semantics, a geometry may contain multiple sources for texture coordinates—each corresponds to a separate mappingChannel number that you can use when associating textured materials.

For a custom shader program, you use this semantic to bind SceneKit’s texture coordinate data to one or more input attributes of the shader.

Texture coordinate data is typically an array of two-component vectors.

See Also

Basic Geometry Semantics

SCNGeometrySourceSemanticVertex

The semantic for vertex position data.

SCNGeometrySourceSemanticNormal

The semantic for surface normal data.