Fix equal shader check

This commit is contained in:
Lubos Lenco 2018-01-04 11:37:27 +01:00
parent 1441102d8f
commit 08b8421c76
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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):