glShadeModel(GL_FLAT);
glEnable(GL_DEPTH_TEST);
glEnable(GL_LIGHTING);
glEnable(GL_LIGHT0);
glLight(GL_LIGHT0, GL_POSITION, asFlippedFloatBuffer(new float[]{2, 2, 2, 0}));
I wonder why the cube is lit and the “spaceship” isn’t, is it due to surface normals or something? The above code is the only light related snippet