- Home /
Color mask shader (impossible?)
Hi,
I'm trying to figure out how to create a shader that fills a triangle with a single/unlit color BUT will allow other colors from behind to be seen. Think of a "magical" red crystal that can see through only the white color (1,1,1), so if I have a green box with white edges, if I put a quad with this material/shader then I'd see only the white edges.
Is this possible? How?
Thank you very much in advance.
Answer by Sparrowfc · Aug 05, 2015 at 06:51 AM
This is basic a glass renderer. All you need it to get color information behind your render object, and the rest are just calculations. Check 'GrabPass' and related stuff.
Your answer
Follow this Question
Related Questions
UI mask with shader 5 Answers
shader problem 0 Answers
How To Replicate the Untitled Goose Game Art Style? 0 Answers
Unlit Transparent Cutout shader that can switch between two textures 0 Answers