javascript - Transforming Geometry to BufferGeometry -
as understand it, geometry stores javascript object structure of vertices , faces , buffergeometry stores raw gl data via float32arrays, etc.
is there way turn standard geometry buffergeometry, lot more memory compact less objects? example if create new spheregeometry, there way transform buffergeometry?
you in luck.
var buffergeometry = new three.buffergeometry().fromgeometry( geometry );
edit: updated three.js r.76
Comments
Post a Comment