This commit is contained in:
2026-02-24 17:35:26 -08:00
parent 1c3c30e6ce
commit d45c632dcd
28 changed files with 1982 additions and 97 deletions

View File

@ -6,6 +6,8 @@ else:
lnx.enable_reload(__name__)
def morph_pos(vert):
if vert.has_attrib('vec2 texCoordMorph = morph * texUnpack;'):
return
rpdat = lnx.utils.get_rp()
vert.add_include('compiled.inc')
vert.add_include('std/morph_target.glsl')
@ -22,6 +24,8 @@ def morph_pos(vert):
vert.write_attrib('spos.xyz /= posUnpack;')
def morph_nor(vert, is_bone, prep):
if vert.has_attrib('vec3 morphNor = vec3(0, 0, 0);'):
return
vert.write_attrib('vec3 morphNor = vec3(0, 0, 0);')
vert.write_attrib('getMorphedNormal(texCoordMorph, vec3(nor.xy, pos.w), morphNor);')
if not is_bone: