Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_output.c
| Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | if (node->flag & NODE_DO_OUTPUT) { | ||||
| copy_v4_v4(shr->combined, col); | copy_v4_v4(shr->combined, col); | ||||
| shr->alpha = col[3]; | shr->alpha = col[3]; | ||||
| // copy_v3_v3(shr->nor, in[3]->vec); | // copy_v3_v3(shr->nor, in[3]->vec); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| static int gpu_shader_output(GPUMaterial *mat, bNode *UNUSED(node), bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out) | static int gpu_shader_output(GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out) | ||||
| { | { | ||||
| GPUNodeLink *outlink; | GPUNodeLink *outlink; | ||||
| #if 0 | #if 0 | ||||
| if (in[1].hasinput) | if (in[1].hasinput) | ||||
| GPU_material_enable_alpha(mat); | GPU_material_enable_alpha(mat); | ||||
| #endif | #endif | ||||
| if (BKE_scene_uses_blender_eevee(GPU_material_scene(mat))) { | if (BKE_scene_uses_blender_eevee(GPU_material_scene(mat))) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| GPU_stack_link(mat, "output_node", in, out, &outlink); | GPU_stack_link(mat, node, "output_node", in, out, &outlink); | ||||
| GPU_material_output_link(mat, outlink); | GPU_material_output_link(mat, outlink); | ||||
| return 1; | return 1; | ||||
| } | } | ||||
| void register_node_type_sh_output(void) | void register_node_type_sh_output(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| Show All 12 Lines | |||||