Skip to content

InterleavedAttribute

new InterleavedAttribute(data: InterleavedBuffer, itemSize: number, offset: number)

THREE equivalent: THREE.InterleavedBufferAttribute

View into an InterleavedBuffer at a specific offset. Multiple InterleavedAttributes can share the same buffer.

Name Type Description
data InterleavedBuffer The shared buffer this attribute reads from.
itemSize number Number of components per vertex.
offset number Element offset within each stride.
count number Number of vertices (delegates to buffer).
Method Description
getX(index: number): number Returns the first component at vertex index.
getY(index: number): number Returns the second component at vertex index.
getZ(index: number): number Returns the third component at vertex index.