2D visibility polygons
Rays at every wall vertex 3The dog is shot in an angle order, creating a "visible polygon", and only the inside is revealed, hiding it in the dark behind the wall.
- Category
- 2D visual effects
Technical terms · Visibility polygon (2D field of view) · Ray casting to segment endpoints · Ray–segment intersection · Clip path (ctx.clip)