mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 05:50:31 +00:00
tone down overcorrection
This commit is contained in:
parent
cf294ad121
commit
001468cb5e
2 changed files with 2 additions and 2 deletions
|
|
@ -243,7 +243,7 @@ vec3 evaluateStandardBRDF(Surface surface, SurfaceToLight surfaceToLight)
|
|||
float denominator = 4.0 * max(surface.NdotV, 0.0) * max(surfaceToLight.NdotL, 0.0) + 0.0001;
|
||||
vec3 specularBRDF = numerator / denominator;
|
||||
|
||||
vec3 diffuseBRDF = surface.baseColor.rgb * surface.ao * M_PI_F;
|
||||
vec3 diffuseBRDF = surface.baseColor.rgb * surface.ao * M_HALFPI_F;
|
||||
|
||||
// Final output combining all terms
|
||||
vec3 kS = F; // Specular reflectance
|
||||
|
|
|
|||
|
|
@ -243,7 +243,7 @@ float3 evaluateStandardBRDF(Surface surface, SurfaceToLight surfaceToLight)
|
|||
float denominator = 4.0 * max(surface.NdotV, 0.0) * max(surfaceToLight.NdotL, 0.0) + 0.0001;
|
||||
float3 specularBRDF = numerator / denominator;
|
||||
|
||||
float3 diffuseBRDF = surface.baseColor.rgb * surface.ao* M_PI_F;
|
||||
float3 diffuseBRDF = surface.baseColor.rgb * surface.ao* M_HALFPI_F;
|
||||
|
||||
// Final output combining all terms
|
||||
float3 kS = F; // Specular reflectance
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue