Maybe you can try to reuse the code from @Pryme8 that renders edges with thickness (Trying to get my Barycentric Shader working as a custom material? - #2 by Evgeni_Popov):
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Possible to use BABYLON.ShadowGenerator with shader material? | 6 | 602 | September 14, 2023 | |
| Shader material with accepting shadow | 2 | 41 | December 2, 2024 | |
| How can I make ShaderMaterial Recieve BabylonShadow? | 2 | 244 | December 21, 2023 | |
| Get shadows working with custom shader | 3 | 1005 | August 16, 2020 | |
| Shadows on plane with shaderMaterial | 2 | 48 | May 12, 2026 |