Merge pull request #11748 from tagcup/fix_burley

Add missing N.L factor to Burley's contribution to radiance.
This commit is contained in:
Juan Linietsky 2017-10-01 11:40:30 -03:00 committed by GitHub
commit 58647e1496
1 changed files with 1 additions and 1 deletions

View File

@ -952,7 +952,7 @@ LIGHT_SHADER_CODE
float FD90 = 0.5 + 2.0 * LoH * LoH * roughness;
float FdV = 1.0 + (FD90 - 1.0) * SchlickFresnel(NoV);
float FdL = 1.0 + (FD90 - 1.0) * SchlickFresnel(NoL);
light_amount = ( (1.0 / M_PI) * FdV * FdL );
light_amount = ( (1.0 / M_PI) * FdV * FdL ) * NoL;
/*
float energyBias = mix(roughness, 0.0, 0.5);
float energyFactor = mix(roughness, 1.0, 1.0 / 1.51);