feat: soft shadows — 16-tap Poisson disk PCF on cubemap

- 16 precomputed Poisson disk offsets on tangent plane
- Tangent basis built from sampling direction (cross product trick)
- Sample radius scales with distance: closer = sharper, farther = softer
  radius = clamp(0.02 * (dist / 20), 0.005, 0.08)
- Early exit: skip PCF if clearly lit or clearly shadowed (performance)
- Bias increased to 0.15 for cubemap distance comparison
- Only triangle.frag changed — no C# or Vulkan resource changes
- 227 tests, all pass
This commit is contained in:
emil28092005
2026-06-18 21:36:30 +03:00
parent f761973443
commit 7e33b64ac9
2 changed files with 55 additions and 2 deletions
Binary file not shown.