Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Get two points by projecting each of a wall line's end points outwards an arbitrary large distance (anything bigger than the screen) from the player's position. Get another two points by projecting a small distance (however much of the wall you want to actually see). Draw a polygon with the four points you found. Repeat for every wall. Use a solid fill color (not transparent or something) so they all look like one cohesive mass of shadow.

genius! thanks!