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:
parent
e4f578a842
commit
b169d59c01
1 changed files with 1 additions and 1 deletions
|
@ -346,7 +346,7 @@ void main (void)
|
||||||
{pf1 = pow(nDotHV1, 0.5*gl_FrontMaterial.shininess);}
|
{pf1 = pow(nDotHV1, 0.5*gl_FrontMaterial.shininess);}
|
||||||
|
|
||||||
float shadowmap = getShadowing();
|
float shadowmap = getShadowing();
|
||||||
light_diffuse *= shadowmap;
|
light_diffuse *= (0.3+0.7*shadowmap);
|
||||||
|
|
||||||
if (cloud_shadow_flag == 1)
|
if (cloud_shadow_flag == 1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue