Files
iw4L/crates
Gh4zi b65454ab88 Fix models disappearing as the player moves; fix red tint on breakable glass
- Map models (Terminal's rooftop tank, boxes and barrels; Favela's laundry) disappeared and
  came back as the player moved, out in the open as well. The DPVS walk visits a cell once per
  visibility portal it is seen through, but only the first visit's clip planes were kept, and
  the cell entity commands culled against those alone, so anything visible only through a
  later portal was dropped. The walk now reports every visit and the cell entity commands run
  once per visit, as IW4 queues them. More visits than the cell queue holds falls back to the
  camera frustum, never to one visit's planes.
- Separately, breakable glass skipped model lighting for a pane whose centre was more than 64
  units off screen, then drew it anyway with lighting handle 0 and reflection probe 0:
  Terminal's wide glass panes showed a red tint with a hard edge. The test now uses the pane's
  own radius.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 03:47:41 +03:00
..