GPU Meshed Voxel Data Questions

Meshed Voxel Terrain | Babylon.js Playground

In the example above, I’m working with Meshed Voxel Data, where each normal is represented by a distinct color. I haven’t encountered too many issues reaching this stage, but I do have some questions.

Many of the features in the inspector, like the wireframe option, don’t seem to work with this setup. I’d like to integrate it with your existing systems in the inspector to make it fully functional.

How can I make the material interact with the in-scene lights and overall lighting? Is this feasible? I suspect I’ll need to modify the fragment shader to achieve this.

Thank you for your help! I’m building toward a larger project with this, so I want to ensure I’m heading in the right direction and aligning with your expected rendering workflow.

It’s quite involved and not really supported. See:

You should try to use a material plugin or a node material instead.

This PR will correct the problem encountered when using the wireframe option: