Эх сурвалжийг харах

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

Josh Engebretson 10 жил өмнө
parent
commit
d230f3c784

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

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