- Home /
Chromakey shader for movie textures?
I'm needing to replace a color in a movie (say, green) with transparency. As I can't grab the pixels from a MovieTexture, I can't brute-force it, but seems like a Shader would be perfect for such a task. I have chromakey code I like (used it in other projects).
Does anyone know of a shader that will do such color replacement? I'm no shader expert, but I can try, if there's something close out there. Or if anyone would like to help me make one, we can talk revenue-sharing.
I found some code here, but it's old and won't compile in 3.5. http://forum.unity3d.com/threads/11512-Using-a-texture-s-RGB-as-an-Alpha
Answer by DaveA · Aug 23, 2012 at 09:28 PM
FWIW I'll be putting up such a shader to the asset store soon. You wanna beta test?
Answer by rodripf · May 14, 2014 at 02:34 PM
You can check out my shader based solution in the asset store: Universal Chroma Key Shader http://u3d.as/6A4
I hope you find it useful!