omni::connect::core::linearToSrgb

Defined in omni/connect/core/MaterialAlgo.h

pxr::GfVec3f omni::connect::core::linearToSrgb(const pxr::GfVec3f &color)

Translate a linear color value to sRGB color space.

  • Many 3D modeling applications define colors in RGB (0-255) or sRGB (0-1) color space

  • MDL uses a linear color space that aligns with how light and color behave in the natural world

  • Color is a complex topic in 3D rendering and providing utilities covering the full breadth of color science is out of the scope of this module

Parameters

color – linear representation of a color to be translated to sRGB color space

Returns

The color in sRGB color space