simple ubershader system, reflection debugging
[laserbrain_demo] / src / metascene.h
index 0417c00..0565f3d 100644 (file)
 
 
 struct FlatMirror {
-       Plane plane;
+       Plane plane;    // plane in local coordinates (original)
+       Plane wplane;   // world coords plane (derived, identical to plane if node == 0)
        float reflect;
-       //std::vector<Object*> objects;
+       std::vector<Object*> objects;
+       SceneNode *node;
 
        FlatMirror *next;
 };
@@ -32,7 +34,6 @@ public:
        std::map<Scene*, void*> scndata;
 
        FlatMirror *mirrors;
-       int num_mirrors;
        std::map<Object*, FlatMirror*> objmirror;
 
        AudioStream *music;