- Home /
GrabPass Textures flipped
I'm currently using GrabPasses for several screen effects in a title I'm developing. The issue I have at the moment, is that when I use more than one texure using a GrabPass, such as the Bloom screen effect and my own shader using a grab pass, the result of my GrabPass shader is flipped upside down.
I am not using AA in any quality level in the project, but I have tried using:
#if UNITY_UV_STARTS_AT_TOP
if (_GrabTexture_TexelSize.y < 0)
o.screenPos.y = 1 - o.screenPos.y;
#endif
I have also tried using named textures in my GrabPass to treat it as a separate texture, but neither of these things work. The only process that does seem to yield effective results is by using ComputeGrabScreenPos() rather than ComputeScreenPos() but this causes a nasty blurring of the texture. Is there any way to get around these issues?
Any thoughts would be greatly appreciated.
Answer by nathanwuyang · Mar 04, 2020 at 08:51 AM
I had this problem too! The result of GrabPass is flipped. But I can't figure out why. If you know the solution of reason now, can you help me out? I would appreciate it a lot!!
Your answer
Follow this Question
Related Questions
Blending between two parts of a texture atlas, using another texture atlas as an Alpha Channel 0 Answers
Getting projector shader to conform to UVs 0 Answers
How to edit each texture of a cubemap in a shader? 0 Answers
Shader not working in executable and DX11 1 Answer
What's the Unity shader equivalent of gl_FragCoord? 0 Answers