Ok, so I definitely hit a wall. No matter what I try I cannot pass uScreenTexCoordScaleBias into my function once i'm trying to do it in the diffusion subroutine instead of albedo. I'm sure it has something to do with the way I wrote the macro because I don't really understand how macros work... Either way, here's the code…
Hey Jeff, Thanks for the reply! I was able to get the aspect ratio correction working! Scaling the texture by depth proved a lot tricker though, your suggestion did work in theory, but since its doing it per fragment, the texture starts to get insane at certain distances/angles. What I really want is to scale the texture…