forked from bartvdbraak/blender
Fix #31511: GLSL preview is much darker than F12 results
A problem caused by Harmony branch code. A value was being set improperly for the GLSL shader.
This commit is contained in:
parent
2d2d36fe3b
commit
deac41506f
@ -708,7 +708,7 @@ static void shade_one_light(GPUShadeInput *shi, GPUShadeResult *shr, GPULamp *la
|
|||||||
i = is;
|
i = is;
|
||||||
GPU_link(mat, "shade_visifac", i, visifac, shi->refl, &i);
|
GPU_link(mat, "shade_visifac", i, visifac, shi->refl, &i);
|
||||||
|
|
||||||
GPU_link(mat, "shade_mul_value", i, GPU_dynamic_uniform(lamp->dyncol, GPU_DYNAMIC_LAMP_DYNCOL, lamp->ob), &lcol);
|
GPU_link(mat, "set_value", GPU_dynamic_uniform(lamp->dyncol, GPU_DYNAMIC_LAMP_DYNCOL, lamp->ob), &lcol);
|
||||||
shade_light_textures(mat, lamp, &lcol);
|
shade_light_textures(mat, lamp, &lcol);
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
Loading…
Reference in New Issue
Block a user