Skip to content

Commit

Permalink
Apply NdotL term in the end
Browse files Browse the repository at this point in the history
  • Loading branch information
szellmann committed May 10, 2024
1 parent e00a3fe commit a6b93c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ inline vec3 evalPhysicallyBasedMaterial(const dco::Material &mat,
float Fc = F_Schlick(VdotH, 0.04f) * clearcoat;
float Frc = (Dc * Vc) * Fc;

return ((diffuseBRDF + specularBRDF) * (1.f - Fc) + Frc) * lightIntensity;
return ((diffuseBRDF + specularBRDF) * (1.f - Fc) + Frc) * lightIntensity * NdotL;
}

VSNRAY_FUNC
Expand Down

0 comments on commit a6b93c6

Please sign in to comment.