BatchedMesh LOD

Hi guys, I added to my npm package @three.ez/batched-mesh-extensions an extension to handle LODs of BatchedMesh.

Currently only LODs of geometries that share the same vertex array are supported. When adding a geometry to BatchedMesh, a space reserved for indexes of LODs is also added.
In future updates there will be the possibility of setting up LODs with geometries that also have different vertices.

In the example the LODs are generated at run time with meshoptimizer using utility methods.

Demo with code:

Repository:

8 Likes