• 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.


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