I try to draw a sun but I don’t know why there is a “shadow” near the sun.. I mean the region near sun is darker rather than brighter!
And I have already set these:
glMaterialfv(GL_FRONT, GL_EMISSION, high_emission);
glLightfv(GL_LIGHT1, GL_POSITION, sun_pos);
glLightfv(GL_LIGHT1, GL_DIFFUSE, white_color);
glLightfv(GL_LIGHT1, GL_SPECULAR, white_color);
Here is the attached screenshot.Thank You