Getting uniformly colored screen


my program should draw a SkyBox with a cross inside the box on which I do apply a shader effect. BUT
if I draw the box(which works well) and draw a green quad inside the box then I get a green screen.

any suggestions


I’d guess your green polygon is covering your field of view.

try also setting
glColor3f(1.0f,1.0f,1.0f); before drawing the skybox, or move the cross away from your fov.