Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fixed4 frag (v2f i) : SV_Target
  2.             {
  3.                 float mainCamD = Linear01Depth(tex2D(_MainCamTex, i.uv).r);
  4.                 float outlineCamD = Linear01Depth(tex2D(_OutlineCamTex, i.uv).r);
  5.                 fixed4 c = fixed4(0.0,0.0,0.0,1.0);
  6.                 if (mainCamD != outlineCamD)
  7.                 {
  8.                     c.r = 1.0;
  9.                 }
  10.                 return c;
  11.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement