glClearColor(0.0,0.0,0.0,0.0);//TODO brauch ich das?
glEnable(GL_DEPTH_TEST);//TODO warum genau?
// glEnable(GL_CULL_FACE);//backface culling
shadeFlatSlot();//set up flat shading
// glEnable(GL_CULL_FACE);//backface culling.
// glCullFace(GL_BACK);//backface culling
// glEnable(GL_COLOR_MATERIAL); //Habe ich für glColor3f gebraucht. Wieder raus für Material. //In order to use both color and lighting you must activate openGL color materials
...
...
@@ -73,24 +75,6 @@ example, the background color.
*/
staticGLfloatlightPosition[4]={0.5,0.0,2.0,1.0};
glLightfv(GL_LIGHT0,GL_POSITION,lightPosition);//set Position of light source.