Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_material.c
| Context not available. | |||||
| shr->combined = shr->diff; | shr->combined = shr->diff; | ||||
| } | } | ||||
| else { | else { | ||||
| // T49175 | |||||
| // If some of shi link's output is NULL, it can be removed in gpu_node_input_link. | |||||
| // Thus, they can be used as input just once. | |||||
| // Making fake output | |||||
| GPU_link(mat, "set_rgb", shi->amb, &shi->amb); | |||||
| GPU_link(mat, "set_rgb", shi->refl, &shi->refl); | |||||
| GPU_link(mat, "set_rgb", shi->emit, &shi->emit); | |||||
| GPU_link(mat, "set_rgb", shi->rgb, &shi->rgb); | |||||
| // | |||||
| if (GPU_link_changed(shi->emit) || ma->emit != 0.0f) { | if (GPU_link_changed(shi->emit) || ma->emit != 0.0f) { | ||||
| if ((ma->mode & (MA_VERTEXCOL | MA_VERTEXCOLP)) == MA_VERTEXCOL) { | if ((ma->mode & (MA_VERTEXCOL | MA_VERTEXCOLP)) == MA_VERTEXCOL) { | ||||
| GPU_link(mat, "shade_add", shi->emit, shi->vcol, &emit); | GPU_link(mat, "shade_add", shi->emit, shi->vcol, &emit); | ||||
| Context not available. | |||||