1
0
Fork 0

Fix too flat shadowing by not completely removing diffuse light but by toning it down instead. There's almost always reflective light bouncing around.

This commit is contained in:
Erik Hofman 2022-05-15 10:41:37 +02:00
parent e4f578a842
commit b169d59c01

View file

@ -346,7 +346,7 @@ void main (void)
{pf1 = pow(nDotHV1, 0.5*gl_FrontMaterial.shininess);}
float shadowmap = getShadowing();
light_diffuse *= shadowmap;
light_diffuse *= (0.3+0.7*shadowmap);
if (cloud_shadow_flag == 1)
{