\r
/* Draw a yellow ball at the light source. */\r
glTranslatef(lightPosition[0], lightPosition[1], lightPosition[2]);\r
\r
/* Draw a yellow ball at the light source. */\r
glTranslatef(lightPosition[0], lightPosition[1], lightPosition[2]);\r
glClearDepth(1.0f); // Depth Buffer Setup\r
glEnable(GL_DEPTH_TEST); // Enables Depth Testing\r
glDepthFunc(GL_LEQUAL); // the type\r
glClearDepth(1.0f); // Depth Buffer Setup\r
glEnable(GL_DEPTH_TEST); // Enables Depth Testing\r
glDepthFunc(GL_LEQUAL); // the type\r