Hi!
I need to make Fog of War for my game.
My strategy now:
- Draw a fullscreen black rectangle.
- Player has a transparent circle around him.
- I want to somehow write a blend function that when this transparent circle meets the black rectangle, the portion of the rectangle where they intersect should go transparent.
- That way the black rectangle will become transparent in the intersections with the circle around the player.
How is this done in OpenGL and Defold?
Any other strategies for FoW?
Thank you!