How do these two magic “include” work? Their inputs(I just guess) are kind of like macro, but I have no idea how they work.
It simply includes the content of the file referenced between
<...> (found in
Shaders/ShadersInclude/) applying some global replacing on the content:
=> it replaces all occurrences of
b, all occurrences of
d, etc on the content of
That’s very smart Where can I learn more about this? Any reference will be helpful.
There’s no documentation about this as it is some implementation detail. You can learn more by reading the Babylon.js source code
That’s what I am looking for!