Is there a way to see the generated shader code for a material before it is used by WebGL?

Hello, is there a way to see the generated shader code for a given material right before it is used by WebGL context? I’d like to just see how a material works.

For example, I would like to know the fragment shader code in normal string format for BABYLON.StandardMaterial.

I hope this makes sense.

Pinging shaders master @sebavan

I think spector* (heh I said castor originally) can do this.

Also have you just looked at materials source codes on git?

They are all stored on BABYLON.ShaderStore at runtime I believe also.

We have the tool you need: https://spector.babylonjs.com/

1 Like

I’ll try all the suggestions! Thank you!