Slide 30
Slide 30 text
衛星(パーティクル)のジオメトリ
BufferGeometry
(幾何学形状の属性を格納す
るジオメトリ)に
[
衛星1
のx
座標,
衛星1
のy
座標,
衛星1
のz
座標,
衛星2
のx
座標,
衛星2
のy
座標,
衛星2
のz
座標, ...]
といった衛星の座標の 1 次元配列を登録する
const geometry =
new BufferGeometry();
geometry.
setAttribute(
'position',
new BufferAttribute(
new Float32Array(vertices),
3)
);
#nikkei_tech_talk
30