Advanced
Optional
divisorattribute 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.
Optional
formatthe format of the attribute
Optional
instanceis this an instanced buffer? (defaults to false)
Optional
locationset where the shader location is for this attribute
Optional
offsetthe offset of the attribute from the buffer, defaults to 0 - in bytes
Optional
sizethe number of elements to be rendered. If not specified, all vertices after the starting vertex will be drawn.
Optional
startthe starting vertex in the geometry to start drawing from. If not specified, drawing will start from the first vertex.
Optional
stridethe stride of the data in the buffer - in bytes
This interface represents the extracted attribute data from a WebGL program. It extends the
Attribute
interface but omits thebuffer
property. It includes an optionallocation
property that indicates where the shader location is for this attribute.