forked from LeenkxTeam/LNXSDK
Update leenkx/blender/lnx/material/make_finalize.py
This commit is contained in:
@ -50,6 +50,17 @@ def make(con_mesh: ShaderContext):
|
||||
vertex_elems.append({'name': 'nor', 'data': 'short2norm'})
|
||||
|
||||
write_wpos = False
|
||||
export_wpos = False
|
||||
if frag.contains('wposition') and not frag.contains('vec3 wposition'):
|
||||
export_wpos = True
|
||||
if tese is not None:
|
||||
export_wpos = True
|
||||
if vert.contains('wposition'):
|
||||
write_wpos = True
|
||||
|
||||
|
||||
|
||||
|
||||
if frag.contains('vVec') and not frag.contains('vec3 vVec'):
|
||||
if tese is not None:
|
||||
tese.add_out('vec3 eyeDir')
|
||||
|
Reference in New Issue
Block a user