Lines Matching refs:Fog
43 switch (ctx->Fog.Mode) {
45 if (ctx->Fog.Start == ctx->Fog.End)
48 d = 1.0F / (ctx->Fog.End - ctx->Fog.Start);
49 f = (ctx->Fog.End - z) * d;
52 d = ctx->Fog.Density;
57 d = ctx->Fog.Density;
143 rFog = ctx->Fog.Color[RCOMP] * 255.0F;
144 gFog = ctx->Fog.Color[GCOMP] * 255.0F;
145 bFog = ctx->Fog.Color[BCOMP] * 255.0F;
148 rFog = ctx->Fog.Color[RCOMP] * 65535.0F;
149 gFog = ctx->Fog.Color[GCOMP] * 65535.0F;
150 bFog = ctx->Fog.Color[BCOMP] * 65535.0F;
153 rFog = ctx->Fog.Color[RCOMP];
154 gFog = ctx->Fog.Color[GCOMP];
155 bFog = ctx->Fog.Color[BCOMP];
162 switch (ctx->Fog.Mode) {
165 const GLfloat fogEnd = ctx->Fog.End;
166 const GLfloat fogScale = (ctx->Fog.Start == ctx->Fog.End)
167 ? 1.0F : 1.0F / (ctx->Fog.End - ctx->Fog.Start);
186 const GLfloat density = -ctx->Fog.Density;
205 const GLfloat negDensitySquared = -ctx->Fog.Density * ctx->Fog.Density;