Fix T52661: mesh light shader using backfacing not working, after new sampling.

This commit is contained in:
Brecht Van Lommel 2017-09-06 13:46:27 +02:00
parent dd8016f708
commit 2d407fc288
Notes: blender-bot 2023-02-14 07:31:32 +01:00
Referenced by issue #52703, classroom scene is much brighter after 24 August
Referenced by issue #52661, Cycles render darker and noisier
1 changed files with 1 additions and 1 deletions

View File

@ -891,7 +891,7 @@ ccl_device_forceinline void triangle_light_sample(KernelGlobals *kg, int prim, i
/* flip normal if necessary */
const int object_flag = kernel_tex_fetch(__object_flag, object);
if(!(object_flag & SD_OBJECT_NEGATIVE_SCALE_APPLIED)) {
if(object_flag & SD_OBJECT_NEGATIVE_SCALE_APPLIED) {
ls->Ng = -ls->Ng;
}
ls->eval_fac = 1.0f;