Lines Matching refs:Fog
307 COPY_4V(value, ctx->Fog.Color);
309 COPY_4V(value, ctx->Fog.ColorUnclamped);
312 value[0] = ctx->Fog.Density;
313 value[1] = ctx->Fog.Start;
314 value[2] = ctx->Fog.End;
315 value[3] = 1.0f / (ctx->Fog.End - ctx->Fog.Start);
597 float val = (ctx->Fog.End == ctx->Fog.Start)
598 ? 1.0f : (GLfloat)(-1.0F / (ctx->Fog.End - ctx->Fog.Start));
600 value[1] = ctx->Fog.End * -val;
601 value[2] = (GLfloat)(ctx->Fog.Density * M_LOG2E); /* M_LOG2E == 1/ln(2) */
602 value[3] = (GLfloat)(ctx->Fog.Density * ONE_DIV_SQRT_LN2);