Scaled slope bias and transparent shadows fixes

This commit is contained in:
2026-10-31 01:10:21 -07:00
parent 29f0765864
commit f45ad72056
15 changed files with 126 additions and 48 deletions

View File

@ -328,7 +328,7 @@ def make_gi(context_id):
frag.write(f'svisibility = shadowTestCascade({shadowmap_sun},')
if is_transparent_shadows:
frag.write(f'{shadowmap_sun_tr},')
frag.write('eye, P + N * shadowsBias * 10, shadowsBias')
frag.write('eye, P, N, shadowsBias')
if is_transparent_shadows:
frag.write(', false')
frag.write(');')