Normal read fix

This commit is contained in:
luboslenco 2018-11-13 10:59:01 +01:00
parent ef1d4bdbb4
commit 9122dcc6e1

View file

@ -718,11 +718,11 @@ def parse_vector(node, socket):
if socket == node.outputs[0]: # Position
return 'wposition'
elif socket == node.outputs[1]: # Normal
return 'n'
return 'n' if curshader.shader_type == 'frag' else 'wnormal'
elif socket == node.outputs[2]: # Tangent
return 'wtangent'
elif socket == node.outputs[3]: # True Normal
return 'n'
return 'n' if curshader.shader_type == 'frag' else 'wnormal'
elif socket == node.outputs[4]: # Incoming
return 'vVec'
elif socket == node.outputs[5]: # Parametric