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);