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.
This commit is contained in:
Sergey Sharybin 2014-12-10 19:07:26 +05:00
parent 668ffcd6e9
commit d68521df7b

@ -23,6 +23,6 @@ shader node_normal(
output float Dot = 1.0)
{
NormalOut = normalize(Direction);
Dot = dot(NormalOut, NormalIn);
Dot = dot(NormalOut, normalize(NormalIn));
}