Type Alias: BindInstanceDataCallback()
BindInstanceDataCallback = (
entity,world,instanceDataBuffer,offset) =>void
Defined in: rendering/renderable.ts:13
Callback function type for binding instance data to a buffer. This function is responsible for writing per-instance data (e.g., transforms, colors) into a Float32Array.
Parameters
entity
number
The entity whose data should be bound
world
instanceDataBuffer
Float32Array
The Float32Array buffer to write instance data into
offset
number
The offset within the buffer where this instance's data should start
Returns
void