fixed terrain rendering - visualized normals
[demo] / src / renderer.h
index efbab80..c3fb0bf 100644 (file)
@@ -14,9 +14,15 @@ protected:
        int mmviewproj_loc;
        int mview_loc;
 
-       Texture *skytex, *dskytex;
        ShaderProgram *sprog;
+
+       /* debug shader to draw normals */
+       ShaderProgram *nprog;
+
+       Texture *skytex, *dskytex;
+
        virtual void draw_object(Object *object) const;
+       virtual void draw_skybox() const;
 
 public:
        Scene *scene;