Interface: Attribute

Attribute

The attribute data for a geometries attributes

Properties:
Name Type Description
buffer Buffer

the buffer that this attributes data belongs to

divisor number

attribute divisor for instanced rendering. Note: this is a WebGL-only feature, the WebGPU renderer will issue a warning if one of the attributes has divisor set.

format VertexFormat

the format of the attribute

instance boolean

is this an instanced buffer? (defaults to false)

offset number

the offset of the attribute from the buffer, defaults to 0 - in bytes

size number

the number of elements to be rendered. If not specified, all vertices after the starting vertex will be drawn.

start number

the starting vertex in the geometry to start drawing from. If not specified, drawing will start from the first vertex.

stride number

the stride of the data in the buffer - in bytes

Members

buffer Buffer

the buffer that this attributes data belongs to

divisor number

attribute divisor for instanced rendering. Note: this is a WebGL-only feature, the WebGPU renderer will issue a warning if one of the attributes has divisor set.

format VertexFormat

the format of the attribute

instance boolean

is this an instanced buffer? (defaults to false)

offset number

the offset of the attribute from the buffer, defaults to 0 - in bytes

size number

the number of elements to be rendered. If not specified, all vertices after the starting vertex will be drawn.

start number

the starting vertex in the geometry to start drawing from. If not specified, drawing will start from the first vertex.

stride number

the stride of the data in the buffer - in bytes