Skip to content

Documentation / scene / decodeNormalizedFloatFromRGBA

Function: decodeNormalizedFloatFromRGBA() ​

decodeNormalizedFloatFromRGBA(scope, value): PBShaderExp

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

Decodes a float that was encoded into a rgba8unorm

Parameters ​

scope ​

PBInsideFunctionScope

Current shader scope

value ​

PBShaderExp

The rgba8unorm to be decoded

Returns ​

PBShaderExp

The decoded float value

Released under the MIT License.