forked from LeenkxTeam/LNXSDK
Repe [T3DU] Update - 31f26d171bba0355ce2a77031e3aad4c64dbc7e9
This commit is contained in:
@ -100,7 +100,7 @@ def make(context_id, rpasses, shadowmap=False, shadowmap_transparent=False):
|
||||
frag.write('float ior;')
|
||||
|
||||
if(con_depth).is_elem('morph'):
|
||||
make_morph_target.morph_pos(vert)
|
||||
make_morph_target.morph_pos(con_depth, vert)
|
||||
|
||||
if con_depth.is_elem('bone'):
|
||||
make_skin.skin_pos(vert)
|
||||
@ -187,11 +187,11 @@ def make(context_id, rpasses, shadowmap=False, shadowmap_transparent=False):
|
||||
|
||||
if shadowmap:
|
||||
tese.add_uniform('mat4 LVP', '_lightViewProjectionMatrix')
|
||||
tese.write('wposition += wnormal * disp;')
|
||||
tese.write('wposition += disp;')
|
||||
tese.write('gl_Position = LVP * vec4(wposition, 1.0);')
|
||||
else:
|
||||
tese.add_uniform('mat4 VP', '_viewProjectionMatrix')
|
||||
tese.write('wposition += wnormal * disp;')
|
||||
tese.write('wposition += disp;')
|
||||
tese.write('gl_Position = VP * vec4(wposition, 1.0);')
|
||||
# No displacement
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user