# `TextureSpec.colorSpace`

> Contract 2.0.0 · package sha256 `a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e` · generated from `configurator-runtime.d.ts` by `services/onsite-scripter/scripts/build-contract-docs.mjs`; edit the source, not this file.

Property of [`TextureSpec`](TextureSpec.md) · inherited by [`TextureSlot`](TextureSlot.md), [`TextureInput`](TextureInput.md) · stable · since 2.0.0

```ts
colorSpace?: 'srgb' | 'linear';
```

How the image's values decode. 'srgb' in the colour slots `baseColor`, `emissive`, `sheenColor`
and `specularColor`; 'linear' in every other slot (`normal`, `metallic`, `roughness`,
`occlusion`, `orm`, `alpha`, `clearcoat`, `clearcoatRoughness`, `clearcoatNormal`,
`sheenRoughness`, `specular`), as glTF and its KHR extensions define them and 1.x decodes
stored maps.

**Default:** 'srgb' for the four colour slots, 'linear' for every other slot

## Generic-API test (spec 3.1)

| Rule | Result |
| --- | --- |
| 1. Neutral name | pass: `colorSpace` names no product |
| 2. A precedent | pass (through its owner [`TextureSpec`](TextureSpec.md)): [glTF KHR_texture_transform](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_texture_transform) (row `G34`) |
| 3. Two apps, or labs | pass: 4 apps (ledger: app-0c773a4ee3, app-f3598fad77; fleet cross-check: app-59c5b5751e, app-e61a0b42ad, app-f3598fad77) |
| 4. The cheaper fix first | decided per need in Appendix B: rows `G34` (through its owner [`TextureSpec`](TextureSpec.md)) at tier stable (a member only where no rule, data, asset or app code serves the need) |
