Packs a direction vector into a color value.
| Parameter | Type | Default Value |
|---|---|---|
| node | Node<vec3> | — |
Returns
Node<vec3>Unpacks a color value into a direction vector.
| Parameter | Type | Default Value |
|---|---|---|
| node | Node<vec3> | — |
Returns
Node<vec3>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.
| Parameter | Type | Default Value |
|---|---|---|
| xy | Node<vec2> | — |
Returns
Node<vec3>