#include "swrast.h"
Functions | |
GLfloat | _swrast_z_to_fogfactor (GLcontext *ctx, GLfloat z) |
Used to convert current raster distance to a fog factor in [0,1]. | |
void | _swrast_fog_rgba_span (const GLcontext *ctx, SWspan *span) |
Apply fog to a span of RGBA pixels. | |
void | _swrast_fog_ci_span (const GLcontext *ctx, SWspan *span) |
As above, but color index mode. |
Apply fog to a span of RGBA pixels.
The fog value are either in the span->array->fog array or interpolated from the fog/fogStep values. They fog values are either fog coordinates (Z) or fog blend factors. _PreferPixelFog should be in sync with that state!
GLfloat _swrast_z_to_fogfactor | ( | GLcontext * | ctx, | |
GLfloat | z | |||
) |
Used to convert current raster distance to a fog factor in [0,1].