From d8d2b3a22f3d0c79bcc645c0cbee767e99b84583 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Mon, 11 Mar 2019 04:27:39 +0900 Subject: [PATCH] fix #37; Flipped soft mask texture on Windows --- Assets/Coffee/UIExtensions/SoftMaskForUGUI/SoftMask.cginc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Coffee/UIExtensions/SoftMaskForUGUI/SoftMask.cginc b/Assets/Coffee/UIExtensions/SoftMaskForUGUI/SoftMask.cginc index 89e5cbb..a28096b 100644 --- a/Assets/Coffee/UIExtensions/SoftMaskForUGUI/SoftMask.cginc +++ b/Assets/Coffee/UIExtensions/SoftMaskForUGUI/SoftMask.cginc @@ -39,7 +39,7 @@ float SoftMaskInternal(float4 clipPos) view = lerp(view, cpos.xy / cpos.w * 0.5 + 0.5, isSceneView); #endif - #if UNITY_UV_STARTS_AT_TOP + #if UNITY_UV_STARTS_AT_TOP && !defined(SHADER_API_D3D11) && !defined(SHADER_API_D3D11_9X) && !defined(SHADER_API_D3D9) view.y = 1.0 - view.y; #endif