mirror of
https://github.com/overte-org/overte.git
synced 2025-06-17 14:40:46 +02:00
FIx the scattering ambient lighting diffuse which was too dark (got divided by PI) comparedd to non scattering
This commit is contained in:
parent
00773b4b12
commit
3d9985fa67
1 changed files with 0 additions and 1 deletions
|
@ -99,7 +99,6 @@ void evalLightingAmbient(out vec3 diffuse, out vec3 specular, LightAmbient ambie
|
||||||
|
|
||||||
// Diffuse from ambient
|
// Diffuse from ambient
|
||||||
diffuse = sphericalHarmonics_evalSphericalLight(getLightAmbientSphere(ambient), lowNormalCurvature.xyz).xyz;
|
diffuse = sphericalHarmonics_evalSphericalLight(getLightAmbientSphere(ambient), lowNormalCurvature.xyz).xyz;
|
||||||
diffuse /= 3.1415926;
|
|
||||||
specular = vec3(0.0);
|
specular = vec3(0.0);
|
||||||
}
|
}
|
||||||
<@endif@>
|
<@endif@>
|
||||||
|
|
Loading…
Reference in a new issue