forked from bartvdbraak/blender
Fix an issue with the new cycles lamp MIS option not working correct with
multiple lamps.
This commit is contained in:
parent
4838a2c75a
commit
736d7810a0
@ -312,6 +312,9 @@ __device bool lamp_light_eval(KernelGlobals *kg, int lamp, float3 P, float3 D, f
|
||||
ls->prim = ~0;
|
||||
ls->lamp = lamp;
|
||||
|
||||
if(!(ls->shader & SHADER_USE_MIS))
|
||||
return false;
|
||||
|
||||
if(type == LIGHT_DISTANT) {
|
||||
/* distant light */
|
||||
float radius = data1.y;
|
||||
|
Loading…
Reference in New Issue
Block a user