Documentation / scene / decode2HalfFromRGBA
Function: decode2HalfFromRGBA()
decode2HalfFromRGBA(
scope,value):PBShaderExp
Defined in: libs/scene/src/shaders/misc.ts:191
Decodes two half floats that was encoded into a rgba8unorm
Parameters
scope
PBInsideFunctionScope
Current shader scope
value
PBShaderExp
The rgba8unorm to be decoded
Returns
PBShaderExp
A vec2 that contains the two half floats