InterleavedAttribute
new InterleavedAttribute(data: InterleavedBuffer, itemSize: number, offset: number)
THREE: THREE.InterleavedBufferAttribute
View into an InterleavedBuffer at a specific offset. Multiple InterleavedAttributes can share the same buffer.
Properties
| 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). |
Methods
| 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. |