100 likes | 285 Views
FOG. To make fog , we need to 3 main info : Fog color Fog density Fog type. glFogf (PNAME, Pram ); glFogfv (PNAME,matrix_name);. To activate fog use function glEnable (GL_FOG);. void glHint(GLenum target, GLenum hint) ; G l enum target : GL_FOG_HINT
E N D
To make fog , we need to 3 main info : • Fog color • Fog density • Fog type
glFogf (PNAME,Pram); • glFogfv(PNAME,matrix_name);
To activate fog use function • glEnable(GL_FOG);
void glHint(GLenum target, GLenum hint); • Glenum target : GL_FOG_HINT • Glenum : GL_NICEST or GL_FASTEST or GL_DONT_CARE
glFogi (GL_FOG_MODE,mode_type); • Mode type : • GL_LINEAR • GL_EXP • GL_EXP2