BufferAttribute Types - Verge3D 用户手册 - Soft8Soft
Description: 了解如何在使用 Verge3D 制作的交互式 3D 应用程序中使用 BufferAttribute Types

BufferAttribute →

# BufferAttribute Types

There are nine types of BufferAttribute available in Verge3D. These correspond to the JavaScript typed arrays.

`v3d.Float64BufferAttribute v3d.Float32BufferAttribute v3d.Float16BufferAttribute v3d.Uint32BufferAttribute v3d.Int32BufferAttribute v3d.Uint16BufferAttribute v3d.Int16BufferAttribute v3d.Uint8ClampedBufferAttribute v3d.Uint8BufferAttribute v3d.Int8BufferAttribute`

## Constructor

All of the above are called in the same way.

### TypedBufferAttribute(array : Array | Integer, itemSize : Integer, normalized : Boolean)

- array — this can be a typed or untyped (normal) array or an integer length. An array value will be converted to the Type specified. If a length is given a new TypedArray will created, initialized with all elements set to zero.
- itemSize — the number of values of the array that should be associated with a particular vertex.
- normalized — (optional) indicates how the underlying data in the buffer maps to the values in the GLSL code.

## Properties

See the BufferAttribute page for inherited properties.

## Methods

See the BufferAttribute page for inherited methods.

## 源代码

关于如何获取此模块的源代码，请查看 本页。