title: Lighting does not work with gluSphere
body: <p>This is a simple issue that I'm somewhat ashamed to ask for help on.</p>
  
  <p>I'm making a simple call to gluSphere to render a sphere, however, it does not light properly even though I'm pretty sure I added the normals and lighting correctly. If, however, I add a texture, the model lights normally, except it seems to be always SMOOTH, and I cannot change it to flat.</p>
  
  <p>This is the lighting code in my init() function:</p>
  
  <pre><code>gl.glLightfv( GL.GL_LIGHT0, GL.GL_AMBIENT , AMBIENT_LIGHT, 0 );
  gl.glLightfv( GL.GL_LIGHT0, GL.GL_DIFFUSE , DIFFUSE_LIGHT, 0 );
  gl.glLightfv( GL.GL_LIGHT0, GL.GL_POSITION, light_pos    , 0 );
  gl.glEnable ( GL.GL_LIGHT0 );
  gl.glEnable ( GL.GL_LIGHTING );
  </code></pre>
  
  <p>this is my sphere code in my display() function:</p>
  
  <pre><code>gl.glColor3d(1.0, 1.0, 1.0);
  glu.gluQuadricDrawStyle  (quad, GLU.GLU_FILL);
  glu.gluQuadricNormals    (quad, GLU.GLU_FLAT);
  glu.gluQuadricOrientation(quad, GLU.GLU_OUTSIDE);
  
  glu.gluSphere(quad, 1.0, lat, lon);
  </code></pre>
  
  <p>Please advise.</p>
  
  <p>EDIT:
  light values:</p>
  
  <pre><code>public final static float[] DIFFUSE_LIGHT  = {  1.0f, 1.0f,  1.0f, 1.0f };
  public final static float[] AMBIENT_LIGHT  = {  0.3f, 0.3f,  0.3f, 1.0f };
  public              float[] light_pos      = { -2.0f, 2.0f, 10.0f, 0.0f };
  </code></pre>
  
  <p>added materials, no change:</p>
  
  <pre><code>gl.glMaterialfv(GL.GL_FRONT, GL.GL_AMBIENT , new float[]{0.5f, 0.5f, 0.5f, 1.0f}, 0);
  gl.glMaterialfv(GL.GL_FRONT, GL.GL_DIFFUSE , new float[]{1.0f, 1.0f, 1.0f, 1.0f}, 0);
  gl.glMaterialfv(GL.GL_FRONT, GL.GL_SPECULAR, new float[]{0.7f, 0.7f, 0.7f, 1.0f}, 0);
  gl.glMaterialf (GL.GL_FRONT, GL.GL_SHININESS, 0.5f);
  gl.glMaterialfv(GL.GL_FRONT, GL.GL_EMISSION, new float[]{0.3f, 0.3f, 0.3f, 0.0f}, 0);
  </code></pre>
  
  <p>EDIT2: </p>
  
  <p>Blah, I figured i had a:</p>
  
  <pre><code>gl.glEnable(GL.GL_TEXTURE_2D);
  </code></pre>
  
  <p>active somewhere and it was causing my model not to have shading if there was no texture associated with it. -_- carry on good people, carry on.</p>