moisesjpelaez - General Material Updates

This commit is contained in:
2025-09-19 17:34:27 +00:00
parent f659a3c2be
commit 1f3d1b47ae

View File

@ -58,7 +58,6 @@ def make(context_id, rpasses):
con['alpha_blend_destination'] = mat.lnx_blending_destination_alpha con['alpha_blend_destination'] = mat.lnx_blending_destination_alpha
con['alpha_blend_operation'] = mat.lnx_blending_operation_alpha con['alpha_blend_operation'] = mat.lnx_blending_operation_alpha
con['depth_write'] = False con['depth_write'] = False
con['compare_mode'] = 'less'
elif particle: elif particle:
pass pass
# Depth prepass was performed, exclude mat with depth read that # 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): elif dprepass and not (rpdat.rp_depth_texture and mat.lnx_depth_read):
con['depth_write'] = False con['depth_write'] = False
con['compare_mode'] = 'equal' 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' attachment_format = 'RGBA32' if '_LDR' in wrd.world_defs else 'RGBA64'
con['color_attachments'] = [attachment_format, attachment_format] con['color_attachments'] = [attachment_format, attachment_format]