Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_tex_wave.c
| Show All 32 Lines | static bNodeSocketTemplate sh_node_tex_wave_in[] = { | ||||
| { SOCK_VECTOR, 1, N_("Vector"), 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_NONE, SOCK_HIDE_VALUE}, | { SOCK_VECTOR, 1, N_("Vector"), 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_NONE, SOCK_HIDE_VALUE}, | ||||
| { SOCK_FLOAT, 1, N_("Scale"), 5.0f, 0.0f, 0.0f, 0.0f, -1000.0f, 1000.0f}, | { SOCK_FLOAT, 1, N_("Scale"), 5.0f, 0.0f, 0.0f, 0.0f, -1000.0f, 1000.0f}, | ||||
| { SOCK_FLOAT, 1, N_("Distortion"), 0.0f, 0.0f, 0.0f, 0.0f, -1000.0f, 1000.0f}, | { SOCK_FLOAT, 1, N_("Distortion"), 0.0f, 0.0f, 0.0f, 0.0f, -1000.0f, 1000.0f}, | ||||
| { SOCK_FLOAT, 1, N_("Detail"), 2.0f, 0.0f, 0.0f, 0.0f, 0.0f, 16.0f}, | { SOCK_FLOAT, 1, N_("Detail"), 2.0f, 0.0f, 0.0f, 0.0f, 0.0f, 16.0f}, | ||||
| { SOCK_FLOAT, 1, N_("Detail Scale"), 1.0f, 0.0f, 0.0f, 0.0f, -1000.0f, 1000.0f}, | { SOCK_FLOAT, 1, N_("Detail Scale"), 1.0f, 0.0f, 0.0f, 0.0f, -1000.0f, 1000.0f}, | ||||
| { -1, 0, "" } | { -1, 0, "" } | ||||
| }; | }; | ||||
| const bool internal_links[5] = {0,0,0,0,0}; | |||||
| static bNodeSocketTemplate sh_node_tex_wave_out[] = { | static bNodeSocketTemplate sh_node_tex_wave_out[] = { | ||||
| { SOCK_RGBA, 0, N_("Color"), 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, | { SOCK_RGBA, 0, N_("Color"), 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_NONE, 0, internal_links}, | ||||
| { SOCK_FLOAT, 0, N_("Fac"), 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_FACTOR}, | { SOCK_FLOAT, 0, N_("Fac"), 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_FACTOR, 0, internal_links}, | ||||
| { -1, 0, "" } | { -1, 0, "" } | ||||
| }; | }; | ||||
| static void node_shader_init_tex_wave(bNodeTree *UNUSED(ntree), bNode *node) | static void node_shader_init_tex_wave(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| { | { | ||||
| NodeTexWave *tex = MEM_callocN(sizeof(NodeTexWave), "NodeTexWave"); | NodeTexWave *tex = MEM_callocN(sizeof(NodeTexWave), "NodeTexWave"); | ||||
| default_tex_mapping(&tex->base.tex_mapping, TEXMAP_TYPE_POINT); | default_tex_mapping(&tex->base.tex_mapping, TEXMAP_TYPE_POINT); | ||||
| default_color_mapping(&tex->base.color_mapping); | default_color_mapping(&tex->base.color_mapping); | ||||
| Show All 30 Lines | |||||