Skip to content

Documentation / scene / linearToGamma

Function: linearToGamma() ​

linearToGamma(scope, color): PBShaderExp

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

Converts a vec3 color from linear space to gamma space

Parameters ​

scope ​

PBInsideFunctionScope

Current shader scope

color ​

PBShaderExp

The vec3 color to be converted

Returns ​

PBShaderExp

The gamma space vec3 color

Released under the MIT License.