Hide/reveal shader and material to make scene appear on touch event
Hi guys!
I have a question - how can I achieve an effect similar in the example image on my 2D mobile game? Longstoryshort - i'd like to have this effect applied on touch event. By default the scene should be dark and whenever player click/taps the screen, few light waves are generated and are moving from the player towards the opposite side of the screen, revealing obstacles and background. I understand that I can use some kind of hide/reveal shader with some kind of diffuse material on background (the background btw is made from multiple layers and has parallax and is scrolling), but I'm pretty new to game dev in Unity, so I'm little bit stuck on this step and hoping on your help.
Your answer
![](https://koobas.hobune.stream/wayback/20220612230719im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why my 2d sprites gets corrupted after I attach material ? 0 Answers
Making a material that auto-tiles a texture 0 Answers
Instance Material Transparency 0 Answers
OnMouseDown to many objects 2 Answers
Can i use LWRP Sprite Lit Graph (Experimental) in my game? 0 Answers