Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Assets/Edge Detection/EdgeDetect.shader
Original file line numberDiff line numberDiff line change
Expand Up@@ -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);
Expand Down