Normal Node - Cycles
reviewed by Brecht, with help from Lukas. Note: dot is reversed compared to Blender. In Blender Normals point outside, while in Cycles they point inside. If you use your own custom vector with the Normal Node you will see a difference. If you feed it with object normals it should work just as good.
This commit is contained in:
@@ -343,6 +343,13 @@ public:
|
||||
static ShaderEnum type_enum;
|
||||
};
|
||||
|
||||
class NormalNode : public ShaderNode {
|
||||
public:
|
||||
SHADER_NODE_CLASS(NormalNode)
|
||||
|
||||
float3 direction;
|
||||
};
|
||||
|
||||
class VectorMathNode : public ShaderNode {
|
||||
public:
|
||||
SHADER_NODE_CLASS(VectorMathNode)
|
||||
|
Reference in New Issue
Block a user