From 8f9f8f9e3ef705adf2e5e6a300a6f2a7b1bfedbd Mon Sep 17 00:00:00 2001 From: Petter Amland Date: Sun, 12 Feb 2023 14:23:40 +0100 Subject: [PATCH] removed unused variables. --- Assets/Edge Detection/EdgeDetect.shader | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Assets/Edge Detection/EdgeDetect.shader b/Assets/Edge Detection/EdgeDetect.shader index 7716f22..68d8005 100644 --- a/Assets/Edge Detection/EdgeDetect.shader +++ b/Assets/Edge Detection/EdgeDetect.shader @@ -34,13 +34,9 @@ float4 _BorderColor; fixed4 fp(v2f i) : SV_Target { - int x, y; fixed4 col = tex2D(_MainTex, i.uv); float depth = tex2D(_CameraDepthTexture, i.uv); depth = Linear01Depth(depth); - - float depths; - float n = Linear01Depth(tex2D(_CameraDepthTexture, i.uv + _CameraDepthTexture_TexelSize * float2(0, 1)).r); float e = Linear01Depth(tex2D(_CameraDepthTexture, i.uv + _CameraDepthTexture_TexelSize * float2(1, 0)).r);