GLSL compiler raw input?

Hi all,

is there a way to see (console.log) the final, raw input to the glsl compiler, after all the #ifdefs have been evaluated?

#ifdef statements belong to the shader source so there is no way to see the code path the shader is actually taken. I would suggest you use a tool like Spector.js to inspect the vertex and fragment shader. In general it’s a great tool for debugging the WebGL rendering process.

1 Like

I was afraid you were going to say something like that. Thanks for the pointer to Spector.js - I’ll give that a try.