Chroma key shader for WebCamTexture in Unity3D

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

Answers


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


Check out the transparency shaders that come with Unity here. You simply need to update the alpha channel mask of your texture with the areas of the texture you want made transparent.


Need Your Help

Struct like objects in Java

java oop struct

Is it completely against the Java way to create struct like objects?