diff options
Diffstat (limited to 'intern/cycles/kernel/shaders/node_normal_map.osl')
-rw-r--r-- | intern/cycles/kernel/shaders/node_normal_map.osl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/intern/cycles/kernel/shaders/node_normal_map.osl b/intern/cycles/kernel/shaders/node_normal_map.osl index 21382fab06f..4428a12ac41 100644 --- a/intern/cycles/kernel/shaders/node_normal_map.osl +++ b/intern/cycles/kernel/shaders/node_normal_map.osl @@ -35,9 +35,10 @@ shader node_normal_map( float tangent_sign; // get _unnormalized_ interpolated normal and tangent - if(!getattribute(attr_name, tangent) || + if (!getattribute(attr_name, tangent) || !getattribute(attr_sign_name, tangent_sign) || - !getattribute("geom:N", ninterp)) { + !getattribute("geom:N", ninterp)) + { Normal = normal(0, 0, 0); } else { |