We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 381bf71 commit d17784eCopy full SHA for d17784e
1 file changed
Packages/src/Shaders/SoftMask.cginc
@@ -43,10 +43,9 @@ float2 ClipToUv(const float2 clipPos)
43
{
44
half2 uv = clipPos.xy / _ScreenParams.xy;
45
#if UNITY_UV_STARTS_AT_TOP
46
- uv.y = 1 - uv.y;
47
- #endif
48
- if (_ProjectionParams.x < 0)
+ if (0 <= _ProjectionParams.x)
49
uv.y = 1 - uv.y;
+ #endif
50
51
#if UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION
52
float ratio = _ScreenParams.x / _ScreenParams.y;
0 commit comments