Fog in OpenGL
|
Prof. David Bernstein
|
Computer Science Department |
bernstdh@jmu.edu |
void glFog*v(GLenum pname, TYPE *params)
pname
is GL_FOG_COLOR
and params
points to the RGBA valuesvoid glFog*(GLenum pname, TYPE params)
pname
is GL_FOG_MODE
and TYPE
is either GL_EXP
,
GL_EXP2
, or GL_LINEAR
pname
can be GL_FOG_DENSITY
,
GL_FOG_START
, or GL_FOG_END
glEnable(GL_FOG);