Documentation / @ripl/3d / packModelUniform
Function: packModelUniform() ​
packModelUniform(
target,input):Float32Array
Defined in: 3d/src/core/uniforms.ts:337
Writes the per-model uniform into a Float32Array laid out per MODEL_UNIFORM_FIELDS.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
target | Float32Array | The scratch array to write into; must hold at least MODEL_UNIFORM_FLOATS. |
input | ModelUniformInput | The mesh state to pack. |
Returns ​
Float32Array
target, for convenience.