Vertex color color space correction. The glTF format requires vertex colors to be stored in Linear Rec. 709 D65 color space, and this function provides a way to correct vertex colors that are (incorrectly) stored in sRGB.
Example:
import { vertexColorSpace } from '@gltf-transform/functions'; await document.transform( vertexColorSpace({ inputColorSpace: 'srgb' }) );
Made by Don McCurdy. Documentation built with greendoc and published under Creative Commons Attribution 3.0.
Vertex color color space correction. The glTF format requires vertex colors to be stored in Linear Rec. 709 D65 color space, and this function provides a way to correct vertex colors that are (incorrectly) stored in sRGB.
Example:
import { vertexColorSpace } from '@gltf-transform/functions'; await document.transform( vertexColorSpace({ inputColorSpace: 'srgb' }) );