get height, camera + cow movement with keys
[demo] / src / renderer.cc
index 816e924..380cf69 100644 (file)
@@ -14,6 +14,8 @@
 #include "shader_manager.h"
 #include "texture.h"
 
+#undef DRAW_NORMALS
+
 /* skybox */
 
 static Mesh *skymesh; /* it will be used by many renderers => no destroy */
@@ -110,7 +112,8 @@ void Renderer::draw_object(Object *object) const
 
        object->mesh->draw();
 
-       /* debug
+       // debug
+#ifdef DRAW_NORMALS
        if(nprog) {
                int loc = nprog->get_uniform_location("mmviewproj");
                if(loc != -1) {
@@ -119,10 +122,7 @@ void Renderer::draw_object(Object *object) const
                nprog->use();
                object->mesh->draw_normals(1.0);
        }
-       */
-
-       // if(m->dtex)
-       //      m->dtex->unbind();
+#endif
 }
 
 void Renderer::set_sky_tex(Texture *stex)