Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/blender_shader.cpp
| Show First 20 Lines • Show All 312 Lines • ▼ Show 20 Lines | else if (b_node.is_a(&RNA_ShaderNodeHueSaturation)) { | ||||
| node = new HSVNode(); | node = new HSVNode(); | ||||
| } | } | ||||
| else if (b_node.is_a(&RNA_ShaderNodeRGBToBW)) { | else if (b_node.is_a(&RNA_ShaderNodeRGBToBW)) { | ||||
| node = new RGBToBWNode(); | node = new RGBToBWNode(); | ||||
| } | } | ||||
| else if (b_node.is_a(&RNA_ShaderNodeMapRange)) { | else if (b_node.is_a(&RNA_ShaderNodeMapRange)) { | ||||
| node = new MapRangeNode(); | node = new MapRangeNode(); | ||||
| } | } | ||||
| else if (b_node.is_a(&RNA_ShaderNodeClamp)) { | |||||
| node = new ClampNode(); | |||||
| } | |||||
| else if (b_node.is_a(&RNA_ShaderNodeMath)) { | else if (b_node.is_a(&RNA_ShaderNodeMath)) { | ||||
| BL::ShaderNodeMath b_math_node(b_node); | BL::ShaderNodeMath b_math_node(b_node); | ||||
| MathNode *math = new MathNode(); | MathNode *math = new MathNode(); | ||||
| math->type = (NodeMath)b_math_node.operation(); | math->type = (NodeMath)b_math_node.operation(); | ||||
| math->use_clamp = b_math_node.use_clamp(); | math->use_clamp = b_math_node.use_clamp(); | ||||
| node = math; | node = math; | ||||
| } | } | ||||
| else if (b_node.is_a(&RNA_ShaderNodeVectorMath)) { | else if (b_node.is_a(&RNA_ShaderNodeVectorMath)) { | ||||
| ▲ Show 20 Lines • Show All 1,117 Lines • Show Last 20 Lines | |||||