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