Skip to content

Documentation / scene / decodeFloatFromRGBA

Function: decodeFloatFromRGBA()

decodeFloatFromRGBA(scope, value): PBShaderExp

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

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.