mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 09:39:58 -04:00
The slope term is a bias per unit of depth slope across one pixel of the target. A shadow map made k times larger on each side (shadow_scale 2 to 4) has 1/k of the slope across each texel, so the game's factor alone gave k times less bias on sloped surfaces than at the game's own size, which is what shows as acne. vk_exec_draw.c slope_bias multiplies the factor by the pass's scale for both the direct draws (record_fixed) and the queued mesh draws; the constant term counts the depth format's smallest steps and keeps its value. Nothing changes at shadow_scale 1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
342 KiB
342 KiB