I'm new to OpenGL / JoJele I'm experimenting with light:
Gl.glEnable (GL2.GL_LIGHT1); Gl.glEnable (GL2.GL_LIGHTING);
When I disable the first line, all the objects in my scene become somewhat dark, but they also have some light from which light can come from? (I only have one light source.) Is there some default ambient light that I can turn off?
Yes, there glMaterial (GL_AMBIENT, ...)
and GlLightModel (GL_LIGHT_MODEL_AMBIENT, ...)
which are set by default (0.2, 0.2, 0.2, 1.0);
Comments
Post a Comment