From 5c682a901b2ae9acf656f19e5f9b470d957d71cc Mon Sep 17 00:00:00 2001 From: Lukas Stockner Date: Tue, 29 Dec 2015 14:42:49 +0100 Subject: Cycles: Add Saw option to the wave texture This commit adds "Bands Saw" and "Rings Saw" to the options for the Wave texture node in Cycles, behaving similar to the Saw option in BI textures. Requested by @cekuhnen on BA. Reviewers: dingto, sergey Subscribers: cekuhnen Differential Revision: https://developer.blender.org/D1699 --- intern/cycles/render/nodes.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'intern/cycles/render/nodes.h') diff --git a/intern/cycles/render/nodes.h b/intern/cycles/render/nodes.h index 67943775b92..cede4205a6a 100644 --- a/intern/cycles/render/nodes.h +++ b/intern/cycles/render/nodes.h @@ -267,12 +267,15 @@ public: virtual int get_group() { return NODE_GROUP_LEVEL_2; } ustring type; + ustring profile; static ShaderEnum type_enum; + static ShaderEnum profile_enum; virtual bool equals(const ShaderNode *other) { const WaveTextureNode *wave_node = (const WaveTextureNode*)other; return TextureNode::equals(other) && - type == wave_node->type; + type == wave_node->type && + profile == wave_node->profile; } }; -- cgit v1.2.3