Three.js 007Geometries
Summary
- Created new
BufferGeometrywith 5,000 randomly placed triangles. - Vertex positions spefied with a
Float32Arraywith 5,000 (triangles) * 3 (vertices) * 3 (x,y,z) position values. - Using this float array, defined a
BufferAttribute. - Using
geometry.setAttribute()set 'position' attribute to the buffer attribute. - Defined
MeshBasicMasterialwithwireframe: true. - Created
Meshwith new geometry and material. - Assigned mesh to the scene.
Loading...
Back to Fullscreen and Resizing
Back to Three.js
Continue with Debug UI