From eb6252e142116ac7be6f33e8da1e4406dec894fe Mon Sep 17 00:00:00 2001 From: Richard Jose Date: Tue, 22 Oct 2019 15:27:10 -0600 Subject: [PATCH] Add ZTest [unity_GUIZTestMode] to ui particle shaders so that they work with the lightweight render pipeline (lwrp) --- Resources/Shaders/UI Particle Add.shader | 1 + Resources/Shaders/UI Particle AddMultiply.shader | 1 + Resources/Shaders/UI Particle AddSmooth.shader | 1 + Resources/Shaders/UI Particle Alpha Blend.shader | 1 + Resources/Shaders/UI Particle Blend.shader | 1 + Resources/Shaders/UI Particle Multiply.shader | 1 + Resources/Shaders/UI Particle MultiplyDouble.shader | 1 + Resources/Shaders/UI Particle Premultiply Blend.shader | 1 + 8 files changed, 8 insertions(+) diff --git a/Resources/Shaders/UI Particle Add.shader b/Resources/Shaders/UI Particle Add.shader index bc5a7c4..f1017e3 100644 --- a/Resources/Shaders/UI Particle Add.shader +++ b/Resources/Shaders/UI Particle Add.shader @@ -20,6 +20,7 @@ Category { Blend SrcAlpha One ColorMask RGB Cull Off Lighting Off ZWrite Off + ZTest [unity_GUIZTestMode] SubShader { diff --git a/Resources/Shaders/UI Particle AddMultiply.shader b/Resources/Shaders/UI Particle AddMultiply.shader index a872c7b..7cd819a 100644 --- a/Resources/Shaders/UI Particle AddMultiply.shader +++ b/Resources/Shaders/UI Particle AddMultiply.shader @@ -20,6 +20,7 @@ Category { Blend One OneMinusSrcAlpha ColorMask RGB Cull Off Lighting Off ZWrite Off + ZTest [unity_GUIZTestMode] SubShader { diff --git a/Resources/Shaders/UI Particle AddSmooth.shader b/Resources/Shaders/UI Particle AddSmooth.shader index dc9fd9c..b12bf2d 100644 --- a/Resources/Shaders/UI Particle AddSmooth.shader +++ b/Resources/Shaders/UI Particle AddSmooth.shader @@ -19,6 +19,7 @@ Category { Blend One OneMinusSrcColor ColorMask RGB Cull Off Lighting Off ZWrite Off + ZTest [unity_GUIZTestMode] SubShader { diff --git a/Resources/Shaders/UI Particle Alpha Blend.shader b/Resources/Shaders/UI Particle Alpha Blend.shader index b58ca0a..3b76f8e 100644 --- a/Resources/Shaders/UI Particle Alpha Blend.shader +++ b/Resources/Shaders/UI Particle Alpha Blend.shader @@ -20,6 +20,7 @@ Category { Blend SrcAlpha OneMinusSrcAlpha ColorMask RGB Cull Off Lighting Off ZWrite Off + ZTest [unity_GUIZTestMode] SubShader { diff --git a/Resources/Shaders/UI Particle Blend.shader b/Resources/Shaders/UI Particle Blend.shader index 3aac8f7..f6e08a6 100644 --- a/Resources/Shaders/UI Particle Blend.shader +++ b/Resources/Shaders/UI Particle Blend.shader @@ -19,6 +19,7 @@ Category { Blend DstColor One ColorMask RGB Cull Off Lighting Off ZWrite Off + ZTest [unity_GUIZTestMode] SubShader { diff --git a/Resources/Shaders/UI Particle Multiply.shader b/Resources/Shaders/UI Particle Multiply.shader index 62a62d9..8e4770e 100644 --- a/Resources/Shaders/UI Particle Multiply.shader +++ b/Resources/Shaders/UI Particle Multiply.shader @@ -18,6 +18,7 @@ Category { Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" "PreviewType"="Plane" "CanUseSpriteAtlas"="True" } Blend Zero SrcColor Cull Off Lighting Off ZWrite Off + ZTest [unity_GUIZTestMode] SubShader { diff --git a/Resources/Shaders/UI Particle MultiplyDouble.shader b/Resources/Shaders/UI Particle MultiplyDouble.shader index 04118f5..c8ec832 100644 --- a/Resources/Shaders/UI Particle MultiplyDouble.shader +++ b/Resources/Shaders/UI Particle MultiplyDouble.shader @@ -19,6 +19,7 @@ Category { Blend DstColor SrcColor ColorMask RGB Cull Off Lighting Off ZWrite Off + ZTest [unity_GUIZTestMode] SubShader { diff --git a/Resources/Shaders/UI Particle Premultiply Blend.shader b/Resources/Shaders/UI Particle Premultiply Blend.shader index e6f8f74..10d0ff1 100644 --- a/Resources/Shaders/UI Particle Premultiply Blend.shader +++ b/Resources/Shaders/UI Particle Premultiply Blend.shader @@ -20,6 +20,7 @@ Category { Blend One OneMinusSrcAlpha ColorMask RGB Cull Off Lighting Off ZWrite Off + ZTest [unity_GUIZTestMode] SubShader {