[page:BufferAttribute] →

BufferAttribute Types

在 Verge3D 中一共有 9 种 [page:BufferAttribute]。每种和 JavaScript 中的类型相对应。 [link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#Syntax Typed Arrays].

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

构造函数

所有上述内容都以相同的方式调用。

TypedBufferAttribute([param:Array array], [param:Integer itemSize], [param:Boolean normalized])

array -- 这可以是类型化或非类型化的(普通)数组。它将被转换为指定的类型。

itemSize -- 应与特定顶点关联的数组值的数量。

normalized -- (可选)表示缓冲区中的基础数据如何映射到GLSL代码中的值。

属性

继承属性详见 [page:BufferAttribute]。

方法

继承方法详见 [page:BufferAttribute]。

源代码

[link:https://github.com/mrdoob/three.js/blob/master/src/core/BufferAttribute.js src/core/BufferAttribute.js]