Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_sepcombRGB.cc
| Show All 21 Lines | |||||
| */ | */ | ||||
| #include "node_shader_util.h" | #include "node_shader_util.h" | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void sh_node_seprgb_declare(NodeDeclarationBuilder &b) | static void sh_node_seprgb_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.is_function_node(); | |||||
| b.add_input<decl::Color>("Image").default_value({0.8f, 0.8f, 0.8f, 1.0f}); | b.add_input<decl::Color>("Image").default_value({0.8f, 0.8f, 0.8f, 1.0f}); | ||||
| b.add_output<decl::Float>("R"); | b.add_output<decl::Float>("R"); | ||||
| b.add_output<decl::Float>("G"); | b.add_output<decl::Float>("G"); | ||||
| b.add_output<decl::Float>("B"); | b.add_output<decl::Float>("B"); | ||||
| }; | }; | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| ▲ Show 20 Lines • Show All 138 Lines • Show Last 20 Lines | |||||