I was recently exposed to the material plugins feature that came with Babylon 5.0, and have read through the documentation here Material Plugins | Babylon.js Documentation
When attempting to add invalid shader code, the entire shader GLSL source is outputted to the browser console, so I’ve been able to get a hold of it that way and have a look at it. I’ve got a couple of questions;
-
is there a better way to get the shader code for a Material?
-
is there any specific documentation on the process by which this shader code is generated, and how existing Babylon shaders work internally? or will this just require having a look through the Babylon documentation and the source code to piece it all together?