Home | History | Annotate | Download | only in radeon

Lines Matching refs:Fog

45 /*             Fog blend factor computation for hw tcl                */
87 * Compute per-vertex fog blend factors from fog coordinates by
88 * evaluating the GL_LINEAR, GL_EXP or GL_EXP2 fog function.
89 * Fog coordinates are distances from the eye (typically between the
91 * Note the fog (eye Z) coords may be negative so we use ABS(z) below.
92 * Fog blend factors are in the range [0,1].
97 GLfloat end = ctx->Fog.End;
101 switch (ctx->Fog.Mode) {
103 if (ctx->Fog.Start == ctx->Fog.End)
106 d = 1.0F / (ctx->Fog.End - ctx->Fog.Start);
111 d = ctx->Fog.Density;
116 d = ctx->Fog.Density*ctx->Fog.Density;
121 _mesa_problem(ctx, "Bad fog mode in make_fog_coord");