diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-12-10 17:07:26 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-12-10 17:07:50 +0300 |
commit | d68521df7bb18204a4ccadd3a48fe75e794ac4ad (patch) | |
tree | 66fefb3bad449d6d97e9a8567f6fc1c4f9005fa9 | |
parent | 668ffcd6e94cb843bf7d00a7bc5a5f454dd5e49a (diff) |
Cycles: Fix difference between SVM and OSL implementation of Normal node
SVM was normalizing the input normal, OSL did not. This lead to render
result differences across this shading systems.
-rw-r--r-- | intern/cycles/kernel/shaders/node_normal.osl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/shaders/node_normal.osl b/intern/cycles/kernel/shaders/node_normal.osl index 14af044e0c0..002eddb574c 100644 --- a/intern/cycles/kernel/shaders/node_normal.osl +++ b/intern/cycles/kernel/shaders/node_normal.osl @@ -23,6 +23,6 @@ shader node_normal( output float Dot = 1.0) { NormalOut = normalize(Direction); - Dot = dot(NormalOut, NormalIn); + Dot = dot(NormalOut, normalize(NormalIn)); } |