forked from LeenkxTeam/LNXSDK
Patch_2
This commit is contained in:
@ -7,6 +7,9 @@ else:
|
||||
|
||||
|
||||
def skin_pos(vert):
|
||||
if vert.has_attrib('vec4 skinA;'):
|
||||
return
|
||||
|
||||
vert.add_include('compiled.inc')
|
||||
|
||||
rpdat = lnx.utils.get_rp()
|
||||
@ -25,6 +28,11 @@ def skin_pos(vert):
|
||||
|
||||
|
||||
def skin_nor(vert, is_morph, prep):
|
||||
morph_normal_code = 'wnormal = normalize(N * (morphNor + 2.0 * cross(skinA.xyz'
|
||||
static_normal_code = 'wnormal = normalize(N * (vec3(nor.xy, pos.w) + 2.0 * cross(skinA.xyz'
|
||||
if vert.has_attrib(morph_normal_code) or vert.has_attrib(static_normal_code):
|
||||
return
|
||||
|
||||
rpdat = lnx.utils.get_rp()
|
||||
if(is_morph):
|
||||
vert.write_attrib(prep + 'wnormal = normalize(N * (morphNor + 2.0 * cross(skinA.xyz, cross(skinA.xyz, morphNor) + skinA.w * morphNor)));')
|
||||
|
||||
Reference in New Issue
Block a user