Merge pull request #1378 from Azaezel/alpha41/aoAlt

take ao into account for the brdf diffuse component
This commit is contained in:
Brian Roberts 2025-02-04 15:49:39 -06:00 committed by GitHub
commit 92af46a8bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -226,7 +226,7 @@ float getDistanceAtt( vec3 unormalizedLightVector , float invSqrAttRadius )
vec3 evaluateStandardBRDF(Surface surface, SurfaceToLight surfaceToLight)
{
//diffuse term
vec3 Fd = surface.albedo.rgb * M_1OVER_PI_F;
vec3 Fd = surface.albedo.rgb * surface.ao * M_1OVER_PI_F;
//GGX specular
vec3 F = F_Schlick(surface.f0, surface.f90, surfaceToLight.HdotV);

View file

@ -227,7 +227,7 @@ float getDistanceAtt( float3 unormalizedLightVector , float invSqrAttRadius )
float3 evaluateStandardBRDF(Surface surface, SurfaceToLight surfaceToLight)
{
//diffuse term
float3 Fd = surface.albedo.rgb * M_1OVER_PI_F;
float3 Fd = surface.albedo.rgb * surface.ao * M_1OVER_PI_F;
//GGX specular
float3 F = F_Schlick(surface.f0, surface.f90, surfaceToLight.HdotV);