Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_tex_environment.c
| Show All 31 Lines | |||||
| /* **************** OUTPUT ******************** */ | /* **************** OUTPUT ******************** */ | ||||
| static bNodeSocketTemplate sh_node_tex_environment_in[] = { | static bNodeSocketTemplate sh_node_tex_environment_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_environment_out[] = { | static bNodeSocketTemplate sh_node_tex_environment_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}, | ||||
| { -1, 0, "" } | { -1, 0, "" } | ||||
| }; | }; | ||||
| static void node_shader_init_tex_environment(bNodeTree *UNUSED(ntree), bNode *node) | static void node_shader_init_tex_environment(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| { | { | ||||
| NodeTexEnvironment *tex = MEM_callocN(sizeof(NodeTexEnvironment), "NodeTexEnvironment"); | NodeTexEnvironment *tex = MEM_callocN(sizeof(NodeTexEnvironment), "NodeTexEnvironment"); | ||||
| 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 20 Lines • Show All 55 Lines • Show Last 20 Lines | |||||