Hey,
I’ve been wondering for some time now:
“Which order is the shader chunks concatenated when they are compiled?”
If say, you declare a uniform in the normalMapPS
chunk that variable is gonna be available in the diffusePS
chunk, but not the other way around (which I assume means normalMapPS
is put before diffusePS
when compiled).
I tried looking a bit at the engine repository, but didn’t manage to get any wiser.
Anyone know the shader chunk compilation order (or where to look for it)?
Also, if you want to declare a uniform variable so that is available to all shader chunks, any tips on which chunk this should be done in? (startPS
is NOT the answer unfortunately)