+1

ScreenPos -> SceneUVs node is flipped Y after v1.28 and 5.4.1f1 update

behealed 8 years ago updated 8 years ago 1

I just updated to v1.28 and 5.4.1f1 (I'm pretty sure I was only one version behind prior to this update, but certainly I wasn't more than a few weeks behind)... and immediately after the update, I noticed my post processing shader's entire picture was up-side-down on the vertical (y) axis. I was like, eh?


So I added a "one minus" to the Y output of my ScreenPos node (which is set to "Scene U Vs"), and bingo, the problem was fixed. I imagine I'll need to add a check for projection parameters-> face sign? Anyway just wanted to report this.

EDIT: I see it already does the "i.screenPos.y *= _ProjectionParams.x;" thing on SceneUVs. I could be mistaken but, I'm guessing the latest version of unity is now doing that itself, so this flipping on the Y axis is no longer needed by shader forge?


Either way this is affecting all my custom shaders, which is quite a few. I can fix all my shaders by un-flipping all their Y's, but I'd really appreciate a response from the dev on this one before I do all of that. Because if you're going to fix this in SF, then I'll just wait for this fix... thanks!