创建对象的属性参数。可包含此类的所有属性。
Readonlyclasscolor 数据
Readonlyid顶点索引数据
ReadonlyisReadonlyis是否是静态
绘制模式
骨骼索引
骨骼权重数据
like:
{
vertices: [[], []],
normals: [[], []],
tangents: [[], []]
}
使用 aabb 碰撞检测
用户数据
uv 数据
uv1 数据
顶点数据
morph animation weights
法向量数据,如果没有的话会自动生成
Monotonic geometry-state revision observed independently by every backend.
切线向量数据,如果没有的话会自动生成
切线向量数据,如果没有的话会自动生成
添加顶点索引
顶点索引,如 addIndices(0, 1, 2)
将三角形模式转换为线框模式,即 Material 中的 wireframe
将 Geometry 转换成无 indices
转换结果的顶点数据的位数(3 or 4),如果为4会补1
获取数据的内存大小,只处理顶点数据,单位为字节
内存占用大小
Converts primitive modes that WebGPU cannot represent into explicit indexed lists.
Both rendering backends call this method before creating backend resources, so LINE_LOOP and TRIANGLE_FAN have one canonical CPU representation and identical draw semantics. Existing unsigned index width is preserved; non-indexed geometry receives the smallest unsigned index type that can address all of its vertices.
Whether the geometry topology was converted.
旋转
旋转角度x
旋转角度y
旋转角度z
this
缩放
this
设置顶点对应的uv坐标
开始的顶点索引
uv坐标数据,如 [[0, 0], [1, 0]]
平移
this
Morph几何体