- Home /
Masking sprite with another sprite?
I am trying to make a moving light (semi-transperent yellow sprite) that make another sprite transperent. For example when the light shines on a building the walls become tranperent (see illustration below). I don't know how to do this. Been watching some vids on shade-writing.. but I got more confused rather than enlightened. Can someone help me, or at least point me in the right direction? I am deeply grateful for all the help I can get. Thanks!
You might want to check out http://blogs.unity3d.com/2015/04/24/early-access-to-new-2d-tools/ first. Otherwise you would need to write your own shader which clips certain parts.
Your answer
![](https://koobas.hobune.stream/wayback/20220613200626im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity Mesh Based Shadows Overlap Issue 0 Answers
2d lighting effect 1 Answer
Alpha cutoff of sprite based on another texture 1 Answer
point light illuminates makes transparent object visible 0 Answers
Is it possible to use a movie texture as a normal map, or as a mask to hide a texture in a shader? 1 Answer