projects
/
laserbrain_demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed reflections in VR
[laserbrain_demo]
/
src
/
metascene.h
diff --git
a/src/metascene.h
b/src/metascene.h
index
0417c00
..
0565f3d
100644
(file)
--- a/
src/metascene.h
+++ b/
src/metascene.h
@@
-11,9
+11,11
@@
struct FlatMirror {
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;
float reflect;
- //std::vector<Object*> objects;
+ std::vector<Object*> objects;
+ SceneNode *node;
FlatMirror *next;
};
FlatMirror *next;
};
@@
-32,7
+34,6
@@
public:
std::map<Scene*, void*> scndata;
FlatMirror *mirrors;
std::map<Scene*, void*> scndata;
FlatMirror *mirrors;
- int num_mirrors;
std::map<Object*, FlatMirror*> objmirror;
AudioStream *music;
std::map<Object*, FlatMirror*> objmirror;
AudioStream *music;