Explorar el Código

Frustum Comparison Fix

- Frustum comparison now includes comparing the projection offset.
- Fixes objects that only set the projection matrix if the frustum has
changed during side-by-side rendering, such as the WaterPlane.
DavidWyand-GG hace 12 años
padre
commit
f790d58978
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      Engine/source/math/util/frustum.h

+ 4 - 1
Engine/source/math/util/frustum.h

@@ -284,7 +284,10 @@ class Frustum : public PolyhedronImpl< FrustumData >
             ( mNearTop == frustum.mNearTop ) &&
             ( mNearBottom == frustum.mNearBottom ) &&
             ( mNearDist == frustum.mNearDist ) &&
-            ( mFarDist == frustum.mFarDist ) );
+            ( mFarDist == frustum.mFarDist ) &&
+            ( mProjectionOffset.x == frustum.mProjectionOffset.x ) &&
+            ( mProjectionOffset.y == frustum.mProjectionOffset.y ) );
+
       }
       bool operator!=( const Frustum& frustum ) const { return !( *this == frustum ); }