- Home /
How to make a fog of war with textures
I googled a lot and find they all use shader to make it.
But I didn't know much about shader.
And I find the fog of war in the game(age of empires 2) is what I want.
In those times,shader haven't been so powerfull and they must make a fog with textures right?
You could probably try to accomplish that effect with multiple camera passes (one renders the world, another renders fog-of-war over that). See the camera manual page for more about that sort of technique. Sounds laborious.
Shaders are used nowadays because they're less effort overall, run faster thanks to the GPU, and they tend to look better besides that.
If you find them overwhel$$anonymous$$g, a simple-ish additive material effect, or maybe a z-test shader, might be an okay place to start.
Answer by HarshadK · Aug 08, 2014 at 06:14 AM
Here are some tutorial and discussions about the topic:
awang, how did you do it? I've been looking for the exact same thing.
@fighder Have you been used Tiled$$anonymous$$ap Editor?If not,you can try it and look at this article : http://www.codeproject.com/Articles/106884/Implementing-Auto-tiling-Functionality-in-a-Tile-$$anonymous$$. It used to make tile based terrains,but you can also use the algorithm to make fogs