Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_math.cc
| Show All 26 Lines | |||||
| /* **************** SCALAR MATH ******************** */ | /* **************** SCALAR MATH ******************** */ | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void sh_node_math_declare(NodeDeclarationBuilder &b) | static void sh_node_math_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.is_function_node(); | b.is_function_node(); | ||||
| b.add_input<decl::Float>("Value").default_value(0.5f).min(-10000.0f).max(10000.0f); | b.add_input<decl::Float>(N_("Value")).default_value(0.5f).min(-10000.0f).max(10000.0f); | ||||
| b.add_input<decl::Float>("Value", "Value_001").default_value(0.5f).min(-10000.0f).max(10000.0f); | b.add_input<decl::Float>(N_("Value"), "Value_001") | ||||
| b.add_input<decl::Float>("Value", "Value_002").default_value(0.5f).min(-10000.0f).max(10000.0f); | .default_value(0.5f) | ||||
| b.add_output<decl::Float>("Value"); | .min(-10000.0f) | ||||
| .max(10000.0f); | |||||
| b.add_input<decl::Float>(N_("Value"), "Value_002") | |||||
| .default_value(0.5f) | |||||
| .min(-10000.0f) | |||||
| .max(10000.0f); | |||||
| b.add_output<decl::Float>(N_("Value")); | |||||
| }; | }; | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| static const char *gpu_shader_get_name(int mode) | static const char *gpu_shader_get_name(int mode) | ||||
| { | { | ||||
| const blender::nodes::FloatMathOperationInfo *info = | const blender::nodes::FloatMathOperationInfo *info = | ||||
| blender::nodes::get_float_math_operation_info(mode); | blender::nodes::get_float_math_operation_info(mode); | ||||
| ▲ Show 20 Lines • Show All 123 Lines • Show Last 20 Lines | |||||