]> Dogcows Code - chaz/yoink/blobdiff - src/GameLayer.cc
use only triangles; no quads
[chaz/yoink] / src / GameLayer.cc
index c0d35b95dadb692b085ee1d9d08bb76765800c25..5e95b7615393c57709b1cf3bb4d6b578f4d0ef80 100644 (file)
@@ -188,6 +188,10 @@ void GameLayer::draw(moof::scalar alpha) const
        if (!state_.scene) return;
        state_.camera.upload_to_gl(alpha);
 
+       float pos[] = {state_.heroine->state().position[0],
+                                  state_.heroine->state().position[1], 0.0f};
+       glLightfv(GL_LIGHT0, GL_POSITION, pos);
+
        // DRAW THE SCENE
        moof::image::reset_binding();
 
This page took 0.017278 seconds and 4 git commands to generate.