Files
sbox-public/engine/Sandbox.Engine/Game/Map
Sam Pavlovic 2388933716 Fix Hammer Shadows Not Rendering Properly (#5334)
* Fix hammer lights not casting shadows and having weird lighting after they became components

* Hammer lights have cone mask from the lightmap itself, we can take advantage of that and tighten the cone for sharper shadows

* Depth buffer bias should track cone width and map resolution, not light radius

A range-5000 light could get ~25x bias and heavy peter-panning, same for overly-wide spots

* Hammer lights have no concept of "hardness" - let's make them reasonably sharp by default a bit like previous behaviour

* Tweaks

* format
2026-07-14 05:45:03 +02:00
..
2025-11-24 09:05:18 +00:00
2025-11-24 09:05:18 +00:00