Chroma key shader for WebCamTexture in Unity3D

c#, chromakey, image-processing, shader, unity-game-engine

Solution

Here is an example shader that could be used: http://pastebin.com/rxJak3jB

Problem

How can I make chroma key attribute to eleminate a color from WebCamTexture. WebCamTexture provides very limited control on texture.

Original source