Repository navigation
Export Nodes SourceIOColorSpaceNode
Converts a texture or a channel between sRGB and linear encoding.

| Input | Type | Description |
|---|---|---|
| texture | Texture | RGB/RGBA texture to convert (RGB only; alpha is untouched). |
| channel | Channel | Single channel to convert. |
Each socket takes one link. If both are linked, the texture is processed. When one socket is linked the other is hidden.
| Output | Type | Description |
|---|---|---|
| texture | Texture | Converted texture (when a texture is linked). |
| channel | Channel | Converted channel (when a channel is linked). |
| Control | Meaning |
|---|---|
| Direction |
sRGB -> Linear (default) uses the standard sRGB decoding curve; Linear -> sRGB uses the standard encoding curve (linear segment below 0.0031308, 1.055 * x^(1/2.4) - 0.055 above). |
| Clamp 0..1 | Clamp the result (default on). |
The conversion is applied to the stored numbers: for textures only to R, G and B (alpha is copied unchanged), for channels to the whole channel. Other nodes do not convert automatically: Image Source hands over the numbers Blender stores, External Texture Source converts only sRGB-flagged .vtf files to linear, and VTF Output either writes values unchanged (Linear space on) or converts linear to sRGB (off).
Texture operators are evaluated while the export graph is resolved (and by the Texture Preview node): upstream image sources are decoded to float arrays, the operator runs on whole images, and the result is passed on without being written anywhere. If an operator cannot produce a result (a required input is unlinked, sizes differ, wrong data type) the export stops with ": output is unavailable".
- Linear EXR to a Source colour texture: Image Source (EXR) -> Color Space (Linear -> sRGB) -> VTF Output (Linear space on, so the already encoded values are stored unchanged).
- Work on sRGB data in linear light: Color Space (sRGB -> Linear) -> Math -> Color Space (Linear -> sRGB) -> VTF Output.
- Using Linear -> sRGB here and turning Linear space off on the VTF Output encodes twice.
- Never convert normal maps or data masks.
- Without a link on either socket the node produces nothing.