diff options
author | Alexander Romanov <a.romanov@blend4web.com> | 2017-03-31 17:53:55 +0300 |
---|---|---|
committer | Alexander Romanov <a.romanov@blend4web.com> | 2017-03-31 17:53:55 +0300 |
commit | 27d20a04b54e334784eeb0ec8d440fd6707d9fa3 (patch) | |
tree | c10239557e478d02554facb48878732b80fc2f36 /source/blender | |
parent | ff693959d89aeb7f763e0286f6fe63bdde20057c (diff) |
Fix unreported bug in Blender Render: using unnormalized normal in normal map node in the same way as in baking
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/nodes/shader/nodes/node_shader_normal_map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/shader/nodes/node_shader_normal_map.c b/source/blender/nodes/shader/nodes/node_shader_normal_map.c index 48d1688c386..e0bf34f42e4 100644 --- a/source/blender/nodes/shader/nodes/node_shader_normal_map.c +++ b/source/blender/nodes/shader/nodes/node_shader_normal_map.c @@ -63,7 +63,7 @@ static void node_shader_exec_normal_map(void *data, int UNUSED(thread), bNode *n CLAMP_MIN(strength, 0.0f); - float *N = shi->vno; + float *N = shi->nmapnorm; int uv_index = 0; switch (nm->space) { case SHD_NORMAL_MAP_TANGENT: |