Is it possible to access the vertex/fragment shaders in formatted form?

I need to extend a pair of default shaders: the vert/frag shaders of THREE.MeshNormalMaterial and use them in a subclass of THREE.MeshNormalMaterial. Is it possible to get the shader source code that is formatted rather than the string form with embedded includes that is in the three.js source code?

Thanks,
Doug

If you open the app in Firefox, you can use the Shader Editor from the built-in dev tools to see the complete vertex and fragment shader code.

2 Likes

Nice! Thank you VERY much :+1:t5: