]> git.tdb.fi Git - libs/gl.git/blobdiff - source/scene.h
Perform culling in eye space and account for Renderer's matrix
[libs/gl.git] / source / scene.h
index 27656a59db2fbbdc5af57de1daf498361f5f07a5..a04fbc01f9a304c5969759fd6afc6380af52b8fe 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <list>
 #include <msp/datafile/objectloader.h>
+#include "matrix.h"
 #include "renderable.h"
 #include "vector.h"
 
@@ -28,6 +29,7 @@ public:
 
 protected:
        std::list<Renderable *> owned_data;
+       mutable Matrix culling_matrix;
        mutable Vector4 frustum_edges[6];
 
        Scene() { }