Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-12-10 17:07:26 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2014-12-10 17:07:50 +0300
commitd68521df7bb18204a4ccadd3a48fe75e794ac4ad (patch)
tree66fefb3bad449d6d97e9a8567f6fc1c4f9005fa9 /intern/cycles
parent668ffcd6e94cb843bf7d00a7bc5a5f454dd5e49a (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.
Diffstat (limited to 'intern/cycles')
-rw-r--r--intern/cycles/kernel/shaders/node_normal.osl2
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));
}