瀏覽代碼

Further fix for not rendering unnecessary shadow casters.

Lasse Öörni 14 年之前
父節點
當前提交
58eb27c25c
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Engine/Graphics/View.cpp

+ 1 - 2
Engine/Graphics/View.cpp

@@ -992,8 +992,7 @@ void View::ProcessShadowCasters(Light* light, unsigned splitIndex, const PODVect
         // Project shadow caster bounding box to light view space for visibility check
         lightViewBox = drawable->GetWorldBoundingBox().Transformed(lightView);
         
-        if (drawable->IsInView(frame_) || IsShadowCasterVisible(drawable, lightViewBox, shadowCamera, lightView, lightViewFrustum,
-            lightViewFrustumBox))
+        if (IsShadowCasterVisible(drawable, lightViewBox, shadowCamera, lightView, lightViewFrustum, lightViewFrustumBox))
         {
             // Update geometry now if not updated yet
             if (!drawable->IsInView(frame_))