forked from LeenkxTeam/LNXSDK
Reflections / Refractions
This commit is contained in:
@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user