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!
This commit is contained in:
Thomas Dinges
2013-07-31 20:05:13 +00:00
parent b6024a0e75
commit 2a25acb108
8 changed files with 56 additions and 75 deletions

View File

@@ -513,8 +513,7 @@ public:
ustring convert_to;
static ShaderEnum type_enum;
static ShaderEnum convert_from_enum;
static ShaderEnum convert_to_enum;
static ShaderEnum convert_space_enum;
};
class BumpNode : public ShaderNode {