vertexColorSpace

  • 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' })
    );
    
Function symbol, where the argument and output are a box labeled 'glTF'.

Made by Don McCurdy. Documentation built with greendoc and published under Creative Commons Attribution 3.0.