mesh highlighted, behind other objects shader

Hey I want somehow for my character to highlight him after he gets behind of an Object.

I know I need to write a shader for this.

Any suggestion from where I can start, or any specific documentation about this issue.

also known as phantom.

Bellow you can see what Exactly Im saying, not exactly approach but almost like this.

Thankx

32499-screenshot_1.png

2 Answers

2

You could try http://wiki.unity3d.com/index.php/Silhouette-Outlined_Diffuse as a starting point.

oo this is perfect thank you, I will move on with development of this shader!

I highly recommend the shader from this post instead:

http://forum.unity3d.com/threads/trying-to-make-a-silhouette-outline-shader.96005/#post-1408098

because the normal Silhouette Outline shader has overlapping problems:

indeed siluet has problems with overlapping. When Im turning my character the part of the body that has the shader attached one is behaviouring strange :D