feat(render3d): contact darkening, so things sit ON the ground
The existing occlusion is tuned as AMBIENT occlusion: a wide radius answering "how open is the sky here". That is the right question, and it leaves every object in the frame hovering - because what says a log is ON the ground rather than in front of it is a hard, narrow darkening in the last few centimetres where the two meet, and at a metre and a half of radius that darkening is spread so thin it is not there. A second, tight pass: eight taps inside 40 cm, which at any normal distance is a handful of pixels and stays in cache, with a much tighter range check than the ambient one so a wall across the room does not darken the floor in front of it. Small by frame area, because contact occlusion is - 1.8% of the frame, 7% of the region around the things it grounds. GL 7.0 -> 7.1 s, VK 7.3 s over 400 frames. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
031137a5fa
commit
5ca14eeaec
4 changed files with 38 additions and 2 deletions
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue