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 • Documented with greendoc • © 2023 MIT License
vertexColorSpace