Light | Dark

glFogCoord

Name

glFogCoord — set the current fog coordinates

C Specification

void glFogCoordd(GLdouble coord);
void glFogCoordf(GLfloat coord);

Parameters

coord

Specify the fog distance.

C Specification

void glFogCoorddv(GLdouble * coord);
void glFogCoordfv(GLfloat * coord);

Parameters

coord

Specifies a pointer to an array containing a single value representing the fog distance.

Description

glFogCoord specifies the fog coordinate that is associated with each vertex and the current raster position. The value specified is interpolated and used in computing the fog color (see glFog).

Notes

glFogCoord is available only if the GL version is 1.4 or greater.

The current fog coordinate can be updated at any time. In particular, glFogCoord can be called between a call to glBegin and the corresponding call to glEnd.

Associated Gets

glGet with argument GL_CURRENT_FOG_COORD

Think you can improve this page? Edit this page on GitHub.