---
title: color
framework: scenekit
role: symbol
role_heading: Type Property
path: scenekit/scngeometrysource/semantic-swift.struct/color
---

# color

The semantic for per-vertex color data.

## Declaration

```swift
static let color: SCNGeometrySource.Semantic
```

## Discussion

Discussion For a geometry source, this semantic identifies data containing a color for each vertex in the geometry. SceneKit interpolates per-vertex colors across a surface to produce smooth shading. Per-vertex colors modulate those produced by lighting and a geometry’s materials, if applicable. For a custom shader program, you use this semantic to bind SceneKit’s vertex color data to an input attribute of the shader. Vertex color data is typically an array of three- or four-component vectors.

## See Also

### Advanced Shading Semantics

- [tangent](scenekit/scngeometrysource/semantic-swift.struct/tangent.md)
