Create a new instance of InstancedInterleavedBuffer
Optional
meshPerAttribute: numberA TypedArray with a shared buffer. Stores the geometry data.
Gives the total number of elements in the array.
Expects a Integer
0
1
The number of TypedArray elements per vertex.
Expects a Integer
Object containing offset and count.
-1
0
{ offset: number = 0; count: number = -1 }
Will be removed in r169. Use "addUpdateRange()" instead.
This can be used to only update some components of stored data. Use the .addUpdateRange function to add ranges to this array.
The number of components to update.
Position at which to start update.
Defines the intended usage pattern of the data store for optimization purposes. Corresponds to the usage parameter of WebGLRenderingContext.bufferData.
After the initial use of a buffer, its usage cannot be changed. Instead, instantiate a new one and set the desired usage before the next render.
{@link THREE.StaticDrawUsage | THREE.StaticDrawUsage}.
UUID of this object instance.
This gets automatically assigned and shouldn't be edited.
A version number, incremented every time the needsUpdate property is set to true.
Expects a Integer
0
Flag to indicate that this attribute has changed and should be re-sent to the GPU. Set this to true when you modify the value of the array.
Setting this to true also increments the version.
Creates a clone of this InterleavedBuffer.
This object holds shared array buffers required for properly cloning geometries with interleaved attributes.
Copies another InterleavedBuffer to this InterleavedBuffer instance.
Copies data from attribute[index2] to array[index1].
Expects a Integer
Expects a Integer
Calls TypedArray.set( value, offset ) on the array.
The source TypedArray
.
index of the array at which to start copying. Expects a Integer
. Default 0
.
RangeError
When offset is negative or is too large.
Set usage
Corresponds to the usage parameter of WebGLRenderingContext.bufferData.
After the initial use of a buffer, its usage cannot be changed. Instead, instantiate a new one and set the desired usage before the next render.
Serializes this InterleavedBuffer. Converting to JSON Geometry format v4,
This object holds shared array buffers required for properly serializing geometries with interleaved attributes.
An instanced version of InterleavedBuffer.
See