Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fixed4 frag (v2f i) : SV_Target
- {
- float mainCamD = Linear01Depth(tex2D(_MainCamTex, i.uv).r);
- float outlineCamD = Linear01Depth(tex2D(_OutlineCamTex, i.uv).r);
- fixed4 c = fixed4(0.0,0.0,0.0,1.0);
- if (mainCamD != outlineCamD)
- {
- c.r = 1.0;
- }
- return c;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement