N E W

packNormalToRGB

Last modified: Jun 4, 2026

Packs a normal vector into a color value.

ParameterTypeDefault Value
nodeNode<vec3>

Returns

Node<vec3>
N E W

unpackRGBToNormal

Unpacks a color value into a normal vector.

ParameterTypeDefault Value
nodeNode<vec3>

Returns

Node<vec3>

unpackNormal

Unpacks a tangent space normal, reconstructing the Z component by projecting the X,Y coordinates onto the hemisphere. The X,Y coordinates are expected to be in the [-1, 1] range.

ParameterTypeDefault Value
xyNode<vec2>

Returns

Node<vec3>

directionToColor

ParameterTypeDefault Value
nodeNode<vec3>

Returns

Node<vec3>

colorToDirection

ParameterTypeDefault Value
nodeNode<vec3>

Returns

Node<vec3>