Skip to content

Documentation / scene / decodeRGBM

Function: decodeRGBM() ​

decodeRGBM(scope, rgbm, maxRange): PBShaderExp

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

Decodes color value that was encoded into RGBM format

Parameters ​

scope ​

PBInsideFunctionScope

Current shader scope

rgbm ​

PBShaderExp

The RGBM to be decoded

maxRange ​

number | PBShaderExp

The max range of color components

Returns ​

PBShaderExp

The decoded RGB color value

Released under the MIT License.