Transforming Geometry to BufferGeometry

前端 未结 1 1314
长情又很酷
长情又很酷 2021-02-01 17:39

As I understand it, Geometry stores a javascript object structure of the vertices and faces and BufferGeometry just stores the raw gl data via Float32Arrays, etc.

Is the

相关标签:
1条回答
  • 2021-02-01 18:02

    You are in luck.

    var bufferGeometry = new THREE.BufferGeometry().fromGeometry( geometry );
    

    EDIT: updated to three.js r.76

    0 讨论(0)
提交回复
热议问题