Home | History | Annotate | Download | only in program

Lines Matching refs:Fog

250          COPY_4V(value, ctx->Fog.Color);
252 COPY_4V(value, ctx->Fog.ColorUnclamped);
255 value[0] = ctx->Fog.Density;
256 value[1] = ctx->Fog.Start;
257 value[2] = ctx->Fog.End;
258 value[3] = (ctx->Fog.End == ctx->Fog.Start)
259 ? 1.0f : (GLfloat)(1.0 / (ctx->Fog.End - ctx->Fog.Start));
452 /* for simpler per-vertex/pixel fog calcs. POW (for EXP/EXP2 fog)
454 * another constant (e) anyway. Linear fog can now be done with a
460 value[0] = (ctx->Fog.End == ctx->Fog.Start)
461 ? 1.0f : (GLfloat)(-1.0F / (ctx->Fog.End - ctx->Fog.Start));
462 value[1] = ctx->Fog.End * -value[0];
463 value[2] = (GLfloat)(ctx->Fog.Density * M_LOG2E); /* M_LOG2E == 1/ln(2) */
464 value[3] = (GLfloat)(ctx->Fog.Density * ONE_DIV_SQRT_LN2);
760 append(dst, "fog.color");
763 append(dst, "fog.params");