can someone please tell me why my colored polygons aren’t being highlighted with my lighting? everything looks monocolor instead.
I have already called
gl.glEnable(GL.GL_COLOR_MATERIAL)
gl.glColorMaterial(GL.GL_FRONT, GL_AMBIENT_AND_DIFFUSE);
can someone please tell me why my colored polygons aren’t being highlighted with my lighting? everything looks monocolor instead.
I have already called
gl.glEnable(GL.GL_COLOR_MATERIAL)
gl.glColorMaterial(GL.GL_FRONT, GL_AMBIENT_AND_DIFFUSE);
Throw these two lines in there and it should work.
gl.glColorMaterial(GL.GL_FRONT, GL.GL_DIFFUSE);
gl.glColorMaterial(GL.GL_FRONT, GL.GL_SPECULAR);
Err, probably only need the second line in your case.