Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_tex_voronoi.cc
| Show All 17 Lines | |||||
| */ | */ | ||||
| #include "../node_shader_util.h" | #include "../node_shader_util.h" | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void sh_node_tex_voronoi_declare(NodeDeclarationBuilder &b) | static void sh_node_tex_voronoi_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.is_function_node(); | |||||
| b.add_input<decl::Vector>("Vector").hide_value(); | b.add_input<decl::Vector>("Vector").hide_value(); | ||||
| b.add_input<decl::Float>("W").min(-1000.0f).max(1000.0f); | b.add_input<decl::Float>("W").min(-1000.0f).max(1000.0f); | ||||
| b.add_input<decl::Float>("Scale").min(-1000.0f).max(1000.0f).default_value(5.0f); | b.add_input<decl::Float>("Scale").min(-1000.0f).max(1000.0f).default_value(5.0f); | ||||
| b.add_input<decl::Float>("Smoothness") | b.add_input<decl::Float>("Smoothness") | ||||
| .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); | ||||
| ▲ Show 20 Lines • Show All 140 Lines • Show Last 20 Lines | |||||