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.
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.
Map file: Missing endpoint clip.zip