Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_tex_white_noise.cc
| Show All 20 Lines | |||||
| #include "BLI_noise.hh" | #include "BLI_noise.hh" | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void sh_node_tex_white_noise_declare(NodeDeclarationBuilder &b) | static void sh_node_tex_white_noise_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.is_function_node(); | b.is_function_node(); | ||||
| b.add_input<decl::Vector>("Vector").min(-10000.0f).max(10000.0f).implicit_field(); | b.add_input<decl::Vector>(N_("Vector")).min(-10000.0f).max(10000.0f).implicit_field(); | ||||
| b.add_input<decl::Float>("W").min(-10000.0f).max(10000.0f); | b.add_input<decl::Float>(N_("W")).min(-10000.0f).max(10000.0f); | ||||
| b.add_output<decl::Float>("Value"); | b.add_output<decl::Float>(N_("Value")); | ||||
| b.add_output<decl::Color>("Color"); | b.add_output<decl::Color>(N_("Color")); | ||||
| }; | }; | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| static void node_shader_init_tex_white_noise(bNodeTree *UNUSED(ntree), bNode *node) | static void node_shader_init_tex_white_noise(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| { | { | ||||
| node->custom1 = 3; | node->custom1 = 3; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 167 Lines • Show Last 20 Lines | |||||