- Home /
Revealing only a section of the background in Unity2D
Hey guys, so in my 2D game, I have an isometric view, and what I'm trying to figure out, is essentially code something akin to Fog of War. What I want is for the background to be entirely white, except for in a large radius around my player. Inside that radius, you can see simply black outlines of the landscape, pre-drawn.
So I've tried my best at googling for the answer on how to do this, but what I can only find, are people recommending using Shaders. However, as much as I've searched for, anything teaching shaders is written in such advanced lingo, that a beginner like myself can't even begin to decipher it. So I guess what I'm asking is, how would I go around doing this? If the answer is shaders, where can I learn what shaders are and how they work, hopefully dumbed down enough that a beginner like me can understand it?
Google "unity3d fog of war", look at the methods described, implement the one that fits your game and experience level, ask a specific question if you have something you've tried and its not working.
Examples http://forum.unity3d.com/threads/206586-Fog-of-war-video-tutorial
http://answers.unity3d.com/questions/14733/how-would-i-do-fog-of-war.html
Google shader tutorials.
Answer by thecomediclife · May 02, 2014 at 01:36 AM
I've seen both of these, and googled more. As I said in my original post, the things I've found via google, I don't understand. I'm looking for a simpler tutorial that can walk me through it more easily than these, because honestly, I'm very new to this.
Your answer
![](https://koobas.hobune.stream/wayback/20220613143523im_/https://answers.unity.com/themes/thub/images/avi.jpg)