Skip to content

Documentation / scene / gammaToLinear

Function: gammaToLinear() ​

gammaToLinear(scope, color): PBShaderExp

Defined in: libs/scene/src/shaders/misc.ts:255

Converts a vec3 color from gamma space to linear space

Parameters ​

scope ​

PBInsideFunctionScope

Current shader scope

color ​

PBShaderExp

The vec3 color to be converted

Returns ​

PBShaderExp

The linear space vec3 color

Released under the MIT License.