Browse Source

Don't switch whether procsky light casts shadows or not as may cause artifacting

Josh Engebretson 10 years ago
parent
commit
d230f3c784
1 changed files with 1 additions and 11 deletions
  1. 1 11
      Source/Atomic/Environment/ProcSky.cpp

+ 1 - 11
Source/Atomic/Environment/ProcSky.cpp

@@ -171,14 +171,10 @@ float ProcSky::SetDayTime(float time)
 
             sunlight_->SetShadowIntensity(shadowFade_);
 
-            if (!sunlight_->GetCastShadows())
-                sunlight_->SetCastShadows(true);
-
         }
         else
         {
-            if (sunlight_->GetCastShadows())
-                sunlight_->SetCastShadows(false);
+
         }
 
     }
@@ -193,15 +189,9 @@ float ProcSky::SetDayTime(float time)
                 shadowFade_ = 0.0f;
 
             sunlight_->SetShadowIntensity(shadowFade_);
-
-            if (!sunlight_->GetCastShadows())
-                sunlight_->SetCastShadows(true);
-
         }
         else
         {
-            if (!sunlight_->GetCastShadows())
-                sunlight_->SetCastShadows(true);
         }
     }