Closed phiresky closed 9 years ago
We could use #define's to separate them out, however, I made the separate because the individual shader got too lengthy to run on the GPU. Additionally the functional output buffers have slightly different definitions.
That said, there are already a few errors I've noticed that have developed because I updated one and forgot to update the other.
tl;dr: I couldn't figure out a better way of doing it, so I opted for the terrible way.
but #defines shouldn't have a runtime impact, right? I'll try to merge them and see if it works.
I merged them and everything seems to work fine. I did not change any of the actual code so it can probably still be simplified.
Mind pushing your changes so I can review?
Also from other thread: I was updating to the wrong branch. Everything still works. Impressive.
Is there a particular reason for this? The code is almost identical and already has a variable doPhysics in it, which is defined as false in Pass1.frag and varying in Pass1Physics.frag. Would be nice if they could be joined or seperated more.