Reflections / Refractions

This commit is contained in:
2026-09-06 01:37:13 -07:00
parent 1e500993d9
commit bc700a6374
4 changed files with 81 additions and 69 deletions

View File

@ -247,9 +247,12 @@ def make(context_id, rpasses, shadowmap=False, shadowmap_transparent=False):
if parse_opacity and not shadowmap_transparent:
if mat_state.material.lnx_discard:
opac = mat_state.material.lnx_discard_opacity_shadows
frag.write('if (opacity < {0}) discard;'.format(opac))
elif rpdat.rp_renderer == 'Deferred' and 'translucent' in rpasses and not shadowmap:
pass
else:
opac = '1.0'
frag.write('if (opacity < {0}) discard;'.format(opac))
frag.write('if (opacity < {0}) discard;'.format(opac))
make_finalize.make(con_depth)