Create a new instance of InterleavedBuffer
A TypedArray with a shared buffer. Stores the geometry data.
The number of typed-array elements per vertex. Expects a Integer
Readonly
isA TypedArray with a shared buffer. Stores the geometry data.
The number of TypedArray elements per vertex.
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.
THREE.StaticDrawUsage | THREE.StaticDrawUsage.
Object containing offset and count.
This can be used to only update some components of stored data. Use the .addUpdateRange function to add
ranges to this array.
Position at which to start update.
The number of components to update.
A version number, incremented every time the needsUpdate property is set to true.
Gives the total number of elements in the array.
UUID of this object instance.
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.
Calls TypedArray.set( value, offset )
on the array.
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.
Copies another InterleavedBuffer to this InterleavedBuffer instance.
Copies data from attribute[index2] to array[index1].
Expects a Integer
Expects a Integer
Creates a clone of this InterleavedBuffer.
This object holds shared array buffers required for properly cloning geometries with interleaved attributes.
Serializes this InterleavedBuffer.
Converting to JSON Geometry format v4,
This object holds shared array buffers required for properly serializing geometries with interleaved attributes.
"Interleaved" means that multiple attributes, possibly of different types, (e.g., position, normal, uv, color) are packed into a single array buffer.
An introduction into interleaved arrays can be found here: Interleaved array basics
See