Hello, Community!
I’m making a strategy game using Away3D and the last feature left to implement is fog of war.
I have a logical map of visibility - what areas player can see, and what areas are covered by fog.
I can ofcourse set visible=false on units under fog.
The question is - how can i visualize the fog of war?
Id like it to appear, for example, as in Warcraft 3
For me this looks like something on the shader level.
I guess i need to somehow pass some parameter to the shader and render with lowered brightness..
How do I do this?
P.S.: If there would be a good answer, this article may be very useful for people who use Away3D in their projects!