Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_tex_gradient.c
| Show All 29 Lines | |||||
| /* **************** BLEND ******************** */ | /* **************** BLEND ******************** */ | ||||
| static bNodeSocketTemplate sh_node_tex_gradient_in[] = { | static bNodeSocketTemplate sh_node_tex_gradient_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}, | ||||
| { -1, 0, "" } | { -1, 0, "" } | ||||
| }; | }; | ||||
| static bNodeSocketTemplate sh_node_tex_gradient_out[] = { | static bNodeSocketTemplate sh_node_tex_gradient_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, SOCK_NO_INTERNAL_LINK}, | ||||
| { 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, SOCK_NO_INTERNAL_LINK}, | ||||
| { -1, 0, "" } | { -1, 0, "" } | ||||
| }; | }; | ||||
| static void node_shader_init_tex_gradient(bNodeTree *UNUSED(ntree), bNode *node) | static void node_shader_init_tex_gradient(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| { | { | ||||
| NodeTexGradient *tex = MEM_callocN(sizeof(NodeTexGradient), "NodeTexGradient"); | NodeTexGradient *tex = MEM_callocN(sizeof(NodeTexGradient), "NodeTexGradient"); | ||||
| 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 29 Lines | |||||