Aleph-One-Marathon / alephone

Aleph One is the open source continuation of Bungie’s Marathon 2 game engine.
https://alephone.lhowon.org/
GNU General Public License v3.0
655 stars 99 forks source link

Missing endpoint clip #429

Closed LidMop closed 1 year ago

LidMop commented 1 year ago

cast_render_ray() fails to create an endpoint clip for the pillar's right side in the case shown below, which results in bad clipping windows. This requires a single polygon to have opaque vertex(es) sandwiched by transparent vertices, all on a sightline, and the next one or more polygons traversed along that sightline don't need clipping (no _clip_left/right flag) but following polygons do.

missing endpoint clip missing endpoint clip map

Map file: Missing endpoint clip.zip