Cycles / Vector Transform node:
authorThomas Dinges <blender@dingto.org>
Wed, 31 Jul 2013 20:05:13 +0000 (20:05 +0000)
committerThomas Dinges <blender@dingto.org>
Wed, 31 Jul 2013 20:05:13 +0000 (20:05 +0000)
commit2a25acb108feed74514d01517e1cb870c4d6851c
treedbb611d644fdd7f32282c79b7adf863443982654
parentb6024a0e758bdca254c2ae824f04b37912661eaf
Cycles / Vector Transform node:
* Code cleanup to avoid duplicated enum code.
* Added a third type for conversion next to Point and Vector: Normal. This is basically the same result as with the Vector type, but normalizes the vector at the end.

Thanks to Brecht for code review!
intern/cycles/blender/blender_shader.cpp
intern/cycles/kernel/shaders/node_vector_transform.osl
intern/cycles/kernel/svm/svm_types.h
intern/cycles/kernel/svm/svm_vector_transform.h
intern/cycles/render/nodes.cpp
intern/cycles/render/nodes.h
source/blender/makesdna/DNA_node_types.h
source/blender/makesrna/intern/rna_nodetree.c