Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_curves.cc
| Show First 20 Lines • Show All 351 Lines • ▼ Show 20 Lines | |||||
| static void sh_node_curve_float_declare(NodeDeclarationBuilder &b) | static void sh_node_curve_float_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.is_function_node(); | b.is_function_node(); | ||||
| b.add_input<decl::Float>(N_("Factor")) | b.add_input<decl::Float>(N_("Factor")) | ||||
| .min(0.0f) | .min(0.0f) | ||||
| .max(1.0f) | .max(1.0f) | ||||
| .default_value(1.0f) | .default_value(1.0f) | ||||
| .subtype(PROP_FACTOR); | .subtype(PROP_FACTOR); | ||||
| b.add_input<decl::Float>(N_("Value")).default_value(1.0f); | b.add_input<decl::Float>(N_("Value")).default_value(1.0f).is_default_link_socket(); | ||||
| b.add_output<decl::Float>(N_("Value")); | b.add_output<decl::Float>(N_("Value")); | ||||
| }; | }; | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| static void node_shader_exec_curve_float(void *UNUSED(data), | static void node_shader_exec_curve_float(void *UNUSED(data), | ||||
| int UNUSED(thread), | int UNUSED(thread), | ||||
| bNode *node, | bNode *node, | ||||
| ▲ Show 20 Lines • Show All 122 Lines • Show Last 20 Lines | |||||