projects
/
laserbrain_demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed mirror rendering for goatvr backends which don't use an fbo
[laserbrain_demo]
/
src
/
rend_cubemap.h
diff --git
a/src/rend_cubemap.h
b/src/rend_cubemap.h
index
00995c7
..
4bacd9e
100644
(file)
--- a/
src/rend_cubemap.h
+++ b/
src/rend_cubemap.h
@@
-8,13
+8,20
@@
class RendCubemap : public Renderer {
private:
Vec3 pos;
Texture *cubemap;
private:
Vec3 pos;
Texture *cubemap;
- unsigned int fbo, zbuf;
+ mutable unsigned int fbo, zbuf;
+ mutable int zbuf_width, zbuf_height;
+ Mat4 proj_matrix;
+
+ void setup(int face_idx) const;
public:
public:
+ RendCubemap();
+
void set_position(const Vec3 &pos);
void set_cubemap(Texture *cubemap);
void draw() const;
void set_position(const Vec3 &pos);
void set_cubemap(Texture *cubemap);
void draw() const;
+ void draw_object(Object *obj) const;
};
#endif // REND_CUBEMAP_H_
};
#endif // REND_CUBEMAP_H_