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:
authorCharlie Jolly <charlie>2020-02-17 18:15:46 +0300
committerCharlie Jolly <mistajolly@gmail.com>2020-02-17 18:43:18 +0300
commit20a4cdfd700d3722fdcaa3b3952ccea1b0e6ee47 (patch)
tree16eee69e8e1d3bdfb902e05df15b055f7141fd4d /source/blender/makesdna/DNA_node_types.h
parentab3a6e050c856345d10f8e36155913288559e4dc (diff)
Cycles: Vector Rotate Node using Axis and Angle method
This node provides the ability to rotate a vector around a `center` point using either `Axis Angle` , `Single Axis` or `Euler` methods. Reviewed By: #cycles, brecht Differential Revision: https://developer.blender.org/D3789
Diffstat (limited to 'source/blender/makesdna/DNA_node_types.h')
-rw-r--r--source/blender/makesdna/DNA_node_types.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_node_types.h b/source/blender/makesdna/DNA_node_types.h
index a8f33072915..071dc70af55 100644
--- a/source/blender/makesdna/DNA_node_types.h
+++ b/source/blender/makesdna/DNA_node_types.h
@@ -1212,6 +1212,20 @@ enum {
NODE_MAPPING_TYPE_NORMAL = 3,
};
+/* Rotation node vector types */
+enum {
+ NODE_VECTOR_ROTATE_TYPE_AXIS = 0,
+ NODE_VECTOR_ROTATE_TYPE_AXIS_X = 1,
+ NODE_VECTOR_ROTATE_TYPE_AXIS_Y = 2,
+ NODE_VECTOR_ROTATE_TYPE_AXIS_Z = 3,
+ NODE_VECTOR_ROTATE_TYPE_EULER_XYZ = 4,
+ NODE_VECTOR_ROTATE_TYPE_EULER_XZY = 5,
+ NODE_VECTOR_ROTATE_TYPE_EULER_YXZ = 6,
+ NODE_VECTOR_ROTATE_TYPE_EULER_YZX = 7,
+ NODE_VECTOR_ROTATE_TYPE_EULER_ZXY = 8,
+ NODE_VECTOR_ROTATE_TYPE_EULER_ZYX = 9,
+};
+
/* math node clamp */
#define SHD_MATH_CLAMP 1