This node represents an operation that unpacks values from a 32-bit unsigned integer, reinterpreting the results as a floating-point vector
Constructor
new UnpackFloatNode(encoding, uintNode)| Parameter | Type | Default Value |
|---|---|---|
| encoding | "snorm" | "unorm" | "float16" | — |
| uintNode | Node | — |
| Accessor | Type | |
|---|---|---|
| get type | string | |
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| uintNode | Node | — | |
| encoding | string | — | |
| isUnpackFloatNode | boolean | — | |
| Method | Type | |
|---|---|---|
| generateNodeType | () => string | |
| generate | (builder: any) => string | |
Extends
TempNodeUnpacks a 32-bit unsigned integer into two 16-bit values, interpreted as normalized signed integers. Returns a vec2 with both values.
| Parameter | Type | Default Value |
|---|---|---|
| value | Node<uint> | — |
Returns
NodeUnpacks a 32-bit unsigned integer into two 16-bit values, interpreted as normalized unsigned integers. Returns a vec2 with both values.
| Parameter | Type | Default Value |
|---|---|---|
| value | Node<uint> | — |
Returns
NodeUnpacks a 32-bit unsigned integer into two 16-bit values, interpreted as 16-bit floating-point numbers. Returns a vec2 with both values.
| Parameter | Type | Default Value |
|---|---|---|
| value | Node<uint> | — |
Returns
Node