I’m currently getting into writing custom shaders for PlayCanvas. Shader chunks seem to be the way to go if I want to keep all the standard shader goodies like shadows.
While I really like the concept of shader chunks, it feels a bit overwhelming to get into it just by looking at the list of chunks without seeing the underlying structure. The standard.js file on the other hand seems a bit too abstract to provide a good entry.
Is there a way to see the resulting standard shader code so I can get an overview over what happens before I dive into the more detailed chunks and the code that generates the result?
Hey Martin, thanks for the tip! It sounds really good, but for some reason it doesn’t seem to work for me; it just displays “Waiting for a WebGL context to be created…” both for my project and for PlayCanvas example projects. (It works with other WebGL examples though, e.g. this one. Weird.)