Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_tex_sky.c
| Show All 29 Lines | |||||
| /* **************** OUTPUT ******************** */ | /* **************** OUTPUT ******************** */ | ||||
| static bNodeSocketTemplate sh_node_tex_sky_in[] = { | static bNodeSocketTemplate sh_node_tex_sky_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_sky_out[] = { | static bNodeSocketTemplate sh_node_tex_sky_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_sky(bNodeTree *UNUSED(ntree), bNode *node) | static void node_shader_init_tex_sky(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| { | { | ||||
| NodeTexSky *tex = MEM_callocN(sizeof(NodeTexSky), "NodeTexSky"); | NodeTexSky *tex = MEM_callocN(sizeof(NodeTexSky), "NodeTexSky"); | ||||
| 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 35 Lines | |||||