<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/TextureResource/Semantic-swift.enum/color",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation15TextureResourceC8SemanticO5coloryA2EmF"
  },
  "title" : "TextureResource.Semantic.color"
}
-->

# TextureResource.Semantic.color

Use the texture to store colors data.

```
case color
```

## Discussion

Properties that specify a semantic of `color` use the RGB color data
from the texture. If the source image contains color space
information, RealityKit modifies the individual pixels to fit the
color space. If the source image is grayscale, RealityKit converts
it to an RGB image first.

---

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)