Idea for inverting mask
Posted: Sun Feb 12, 2012 2:06 pm
Hey there,
I'm currently working on a game with a lighting engine, which calculates the
field of view from the player's perspective. (see first figure)
It works by drawing a shadow map in a framebuffer, which is mulitplyed with
the underlying floor tiles. Now I want to draw all invisble tiles as "blueprints", so you can see the structure
of the level all the time (see second figure).
Any idea how to realize that ? Is there a methode for fast inverting the shadow map?
I'm currently working on a game with a lighting engine, which calculates the
field of view from the player's perspective. (see first figure)
It works by drawing a shadow map in a framebuffer, which is mulitplyed with
the underlying floor tiles. Now I want to draw all invisble tiles as "blueprints", so you can see the structure
of the level all the time (see second figure).
Any idea how to realize that ? Is there a methode for fast inverting the shadow map?