Fix equal shader check
This commit is contained in:
parent
1441102d8f
commit
08b8421c76
|
@ -156,9 +156,9 @@ def make(context_id, rpasses, shadowmap=False):
|
|||
opac = mat_state.material.arm_discard_opacity_shadows
|
||||
frag.write('if (opacity < {0}) discard;'.format(opac))
|
||||
|
||||
make_mesh.make_finalize(con_depth)
|
||||
|
||||
assets.vs_equal(con_depth, assets.shader_cons['depth_vert'])
|
||||
assets.fs_equal(con_depth, assets.shader_cons['depth_frag'])
|
||||
|
||||
make_mesh.make_finalize(con_depth)
|
||||
|
||||
return con_depth
|
||||
|
|
|
@ -49,10 +49,10 @@ def make(context_id):
|
|||
elif rid == 'Deferred Plus':
|
||||
make_deferred_plus(con_mesh)
|
||||
|
||||
assets.vs_equal(con_mesh, assets.shader_cons['mesh_vert'])
|
||||
|
||||
make_finalize(con_mesh)
|
||||
|
||||
assets.vs_equal(con_mesh, assets.shader_cons['mesh_vert'])
|
||||
|
||||
return con_mesh
|
||||
|
||||
def make_finalize(con_mesh):
|
||||
|
|
Loading…
Reference in a new issue