How would I be able to create a fog of war effect for a top-down game?

it’s something like this from door kickers 2

in short it’s basically a system where everything except the things you see / have seen before are blacked out for the player and only the areas that were and are in the player’s or their team’s line of sight are shown

i’m aware that it’s something with lookvectors and raycasting but i cant figure out how to make a proper and smooth visual effect with the fog and the line of sight where the areas gradually get visible for the player, lmk if this is even possible and how i would be able to do it

1 Like