<!--
{
  "availability" : [
    "iOS: 5.0.0 - 12.0.0",
    "iPadOS: 5.0.0 - 12.0.0",
    "macOS: 10.8.0 - 10.14.0",
    "tvOS: 9.0.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GLKit",
  "identifier" : "/documentation/GLKit/GLKBaseEffect/useConstantColor",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GLKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GLKBaseEffect(py)useConstantColor"
  },
  "title" : "useConstantColor"
}
-->

# useConstantColor

A Boolean value that indicates whether or not to use the constant color.

```
var useConstantColor: GLboolean { get set }
```

## Discussion

If the value is set to `GL_TRUE`, then the value stored in the [`constantColor`](/documentation/GLKit/GLKBaseEffect/constantColor) property is used as the color value for each vertex. If the value is set to `GL_FALSE`, then your application is expected to enable the [`GLKVertexAttrib.color`](/documentation/GLKit/GLKVertexAttrib/color) attribute and provide per-vertex color data. The default value is `GL_FALSE`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)