ClangFormat: apply to source, most of intern
[blender.git] / intern / cycles / kernel / shaders / node_vector_transform.osl
index afb95b3..2293957 100644 (file)
 
 #include "stdosl.h"
 
-shader node_vector_transform(
-       string type = "vector",
-       string convert_from = "world",
-       string convert_to = "object",
-       vector VectorIn = vector(0.0, 0.0, 0.0),
-       output vector VectorOut = vector(0.0, 0.0, 0.0))
+shader node_vector_transform(string type = "vector",
+                             string convert_from = "world",
+                             string convert_to = "object",
+                             vector VectorIn = vector(0.0, 0.0, 0.0),
+                             output vector VectorOut = vector(0.0, 0.0, 0.0))
 {
-       if (type == "vector" || type == "normal") {
-               VectorOut = transform(convert_from, convert_to, VectorIn);
-               if (type == "normal")
-                       VectorOut = normalize(VectorOut);
-       }
-       else if (type == "point") {
-               point Point = (point)VectorIn;
-               VectorOut = transform(convert_from, convert_to, Point);
-       }
+  if (type == "vector" || type == "normal") {
+    VectorOut = transform(convert_from, convert_to, VectorIn);
+    if (type == "normal")
+      VectorOut = normalize(VectorOut);
+  }
+  else if (type == "point") {
+    point Point = (point)VectorIn;
+    VectorOut = transform(convert_from, convert_to, Point);
+  }
 }
-