The glow layer does not work on wireframe geometries.
You can try something like this, which draws the edges of each triangles through a custom vertex/shader and makes the edge thickness pulsates over time:
https://playground.babylonjs.com/#T1EAE3
This is based on:
- METHOD=1: Easy wireframe display with barycentric coordinates - Codeflow
- METHOD=2: Shader-Based Wireframe Drawing
You can change the method in the fragment shader:
#define METHOD 1
Note that:
mesh.convertToFlatShadedMesh();
is very important, as it ensures that each triangle has its 3 own vertices and that no vertex are shared by triangles. You need this because each vertex of a triangle has a new attribute barycentric
that can’t be shared because its value may be different for two vertices at the same location if they are not in the same triangle.