0
应该是什么其他的(自定义)的正确长度属性 如果 length of my position attribute is m
和 length of my index attribute is n
?BufferAttribute尺寸为IndexedBufferGeometry
例如,如果我有一个矩形表面绘制;
4 points => 4*3 = length of positions is 12,
2 triangles => 2*3 = length of index attribute is 6
如果我需要颜色属性(rgba)应该是什么数组的长度?
4 * 4 = 16 or 6*4 = 24 ?
我知道itemSize的阵列。我的问题是,如果一个缓冲区属性数组的长度为itemSize * positionArray.length/3或itemSize * indexArray.length。但是在我的测试之后,我发现了答案,正如你所说的,它应该是itemSize * positionArray.length/3 – Hasan