omni::connect::core::sRgbToLinear
Defined in omni/connect/core/MaterialAlgo.h
-
pxr::GfVec3f omni::connect::core::sRgbToLinear(const pxr::GfVec3f &color)
Translate an sRGB color value to linear 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 – sRGB representation of a color to be translated to linear color space
- Returns
The translated color in linear color space