Fixed remaining syntax errors in OSL files. node_sepcomb_rgb.osl is split into 2...
[blender.git] / intern / cycles / kernel / osl / nodes / node_normal.osl
index 06c409e5b7851e08c4bb079823da0b7e44bb1b23..d5f16acb88c86ad29c6f24f101e7e9c68f044c41 100644 (file)
@@ -24,8 +24,7 @@ shader node_normal(
        output normal NormalOut = normal(0.0, 0.0, 0.0),
        output float Dot = 1.0)
 {
-       Direction = normalize(Direction);
-       NormalOut = Direction;
-       Dot = dot(Direction, NormalIn);
+       NormalOut = normalize(Direction);
+       Dot = dot(NormalOut, NormalIn);
 }