Skip to content

Commit

Permalink
Configurable AO shader fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gjcope committed Nov 29, 2023
1 parent 77d86a6 commit 83b2e4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/client/shaders/uberPBRShader.frag
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ void main() {
vec3 aoSample = texture2D(aoMap, vAoMapUv).rgb;
vec3 aoFactors = mix(vec3(1.0), aoSample, clamp(aoMapMix * aoMapIntensity, 0.0, 1.0));
float ambientOcclusion = aoFactors.x * aoFactors.y * aoFactors.z;
//float ambientOcclusion2 = ambientOcclusion * ambientOcclusion;
//reflectedLight.directDiffuse *= ambientOcclusion2;
//reflectedLight.directSpecular *= ambientOcclusion;
float ambientOcclusion2 = ambientOcclusion * ambientOcclusion;
reflectedLight.directDiffuse *= ambientOcclusion2;
reflectedLight.directSpecular *= ambientOcclusion;
reflectedLight.indirectDiffuse *= ambientOcclusion;

#if defined( USE_CLEARCOAT )
Expand Down

0 comments on commit 83b2e4c

Please sign in to comment.