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:
emission:
glMaterialfv(GL_FRONT, GL_EMISSION, high_emission);
point light:
glLightfv(GL_LIGHT1, GL_POSITION, sun_pos);
glLightfv(GL_LIGHT1, GL_DIFFUSE, white_color);
glLightfv(GL_LIGHT1, GL_SPECULAR, white_color);
glEnable(GL_LIGHT1);
Here is the attached screenshot.Thank You