Fix shader bug likely introduced recently.
This commit is contained in:
parent
3331ececc4
commit
8aa38c9ad8
1 changed files with 2 additions and 2 deletions
|
@ -1103,9 +1103,9 @@ LIGHT_SHADER_CODE
|
|||
float Fr = mix(.04, 1.0, cLdotH5);
|
||||
float Gr = G_GGX_2cos(cNdotL, .25) * G_GGX_2cos(cNdotV, .25);
|
||||
|
||||
float specular_brdf_NL = 0.25 * clearcoat * Gr * Fr * Dr * cNdotL;
|
||||
float clearcoat_specular_brdf_NL = 0.25 * clearcoat * Gr * Fr * Dr * cNdotL;
|
||||
|
||||
specular_light += specular_brdf_NL * light_color * specular_blob_intensity * attenuation;
|
||||
specular_light += clearcoat_specular_brdf_NL * light_color * specular_blob_intensity * attenuation;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue