InstancedMesh - Lines?

InstancedMesh is derived from Mesh so it can’t be used for points or lines. However, you can use InstancedBufferGeometry for all render primitives. Unfortunately, there is no official example that shows how the generate such a geometry for points and lines but the process is basically similar to rendering triangles. Use this as a code template

https://threejs.org/examples/webgl_buffergeometry_instancing

3 Likes