How to implement a grid that can change various configurations

What about the MeshLine created by Roland?

BabylonJS MeshLine - a port of THREE.MeshLine - Demos and projects - Babylon.js

2 Likes