I tried with enableEdges Rendering, but there is a “red line” going from an edge to center of hexagon : /
What I’m doing wrong ? Is there any way to display only outline ?
It should be possible to define submeshes and render only their outline, but when seen from the side, flat faces show no outline.
For your original question, apparently setting the checkVerticesInsteadOfIndices of enableEdgesRendering works for the cylinder, perhaps it will work for the hexagon as well:
Even though the Node setups in the resources above were created outside of Babylon, there is much to learn from these when implementing your own in https://nme.babylonjs.com/
The Babylon community was extremely helpful when I first tried learning Node Materials (Node Material: Dissolve Effect). If you have questions when creating your own custom material or shader, I’m sure the community would be happy to help