Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_vectTransform.c
| Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | if (nodeprop->convert_to == SHD_VECT_TRANSFORM_SPACE_CAMERA && | ||||
| GPU_link(mat, "invert_z", out[0].link, &out[0].link); | GPU_link(mat, "invert_z", out[0].link, &out[0].link); | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| GPU_link(mat, "set_rgb", inputlink, &out[0].link); | GPU_link(mat, "set_rgb", inputlink, &out[0].link); | ||||
| } | } | ||||
| if (nodeprop->type == SHD_VECT_TRANSFORM_TYPE_NORMAL) { | if (nodeprop->type == SHD_VECT_TRANSFORM_TYPE_NORMAL) { | ||||
| GPU_link(mat, "vect_normalize", out[0].link, &out[0].link); | GPU_link(mat, "vector_normalize", out[0].link, &out[0].link); | ||||
| } | } | ||||
| return true; | return true; | ||||
| } | } | ||||
| void register_node_type_sh_vect_transform(void) | void register_node_type_sh_vect_transform(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| Show All 11 Lines | |||||