projects
/
demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes
[demo]
/
src
/
renderer.h
diff --git
a/src/renderer.h
b/src/renderer.h
index
8f19243
..
23471f5
100644
(file)
--- a/
src/renderer.h
+++ b/
src/renderer.h
@@
-5,6
+5,7
@@
class OrbitCamera;
class Object;
class Scene;
class ShaderProgram;
class Object;
class Scene;
class ShaderProgram;
+class Texture;
class Renderer {
protected:
class Renderer {
protected:
@@
-13,11
+14,24
@@
protected:
int shin_loc;
int mmviewproj_loc;
int mview_loc;
int shin_loc;
int mmviewproj_loc;
int mview_loc;
+ int mmod_loc;
+ int fog_loc;
+ int dstex_loc;
+ int stex_loc;
ShaderProgram *sprog;
ShaderProgram *sprog;
+
+ /* debug shader to draw normals */
+ ShaderProgram *nprog;
+
+ Texture *skytex, *dskytex;
+
virtual void draw_object(Object *object) const;
virtual void draw_object(Object *object) const;
+ virtual void draw_skybox() const;
public:
public:
+ float fog_density;
+
Scene *scene;
OrbitCamera *camera;
Scene *scene;
OrbitCamera *camera;
@@
-26,6
+40,9
@@
public:
virtual bool create();
virtual void draw() const;
virtual bool create();
virtual void draw() const;
+
+ virtual void set_sky_tex(Texture *stex);
+ virtual void set_diffuse_sky_tex(Texture *dstex);
};
#endif // RENDERER_H_
\ No newline at end of file
};
#endif // RENDERER_H_
\ No newline at end of file