forked from LeenkxTeam/LNXSDK
moisesjpelaez - General Material Updates
This commit is contained in:
@ -58,7 +58,6 @@ def make(context_id, rpasses):
|
||||
con['alpha_blend_destination'] = mat.lnx_blending_destination_alpha
|
||||
con['alpha_blend_operation'] = mat.lnx_blending_operation_alpha
|
||||
con['depth_write'] = False
|
||||
con['compare_mode'] = 'less'
|
||||
elif particle:
|
||||
pass
|
||||
# Depth prepass was performed, exclude mat with depth read that
|
||||
@ -66,6 +65,9 @@ def make(context_id, rpasses):
|
||||
elif dprepass and not (rpdat.rp_depth_texture and mat.lnx_depth_read):
|
||||
con['depth_write'] = False
|
||||
con['compare_mode'] = 'equal'
|
||||
else:
|
||||
con['depth_write'] = mat.lnx_depth_write
|
||||
con['compare_mode'] = mat.lnx_compare_mode
|
||||
|
||||
attachment_format = 'RGBA32' if '_LDR' in wrd.world_defs else 'RGBA64'
|
||||
con['color_attachments'] = [attachment_format, attachment_format]
|
||||
|
Reference in New Issue
Block a user