clray

diff src/clray.cc @ 22:6c44e4b1726d

OMG alignment is a bitch
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 11 Aug 2010 04:30:35 +0100
parents bd6c2b25f6e7
children 8b2f2ad14ae7
line diff
     1.1 --- a/src/clray.cc	Tue Aug 10 07:24:18 2010 +0100
     1.2 +++ b/src/clray.cc	Wed Aug 11 04:30:35 2010 +0100
     1.3 @@ -9,7 +9,7 @@
     1.4  #endif
     1.5  #include "rt.h"
     1.6  #include "matrix.h"
     1.7 -#include "mesh.h"
     1.8 +#include "scene.h"
     1.9  
    1.10  void cleanup();
    1.11  void disp();
    1.12 @@ -25,7 +25,7 @@
    1.13  static float cam_theta, cam_phi = 25.0;
    1.14  static float cam_dist = 10.0;
    1.15  
    1.16 -static bool dbg_glrender = true;
    1.17 +static bool dbg_glrender = false;
    1.18  
    1.19  static Scene scn;
    1.20  
    1.21 @@ -128,6 +128,7 @@
    1.22  		dbg_render_gl(&scn);
    1.23  	} else {
    1.24  		glEnable(GL_TEXTURE_2D);
    1.25 +		glDisable(GL_LIGHTING);
    1.26  
    1.27  		glBegin(GL_QUADS);
    1.28  		glColor3f(1, 1, 1);