Home | History | Annotate | Download | only in r200

Lines Matching defs:fog

372  * Fog
383 c.i = rmesa->hw.fog.cmd[FOG_C];
384 d.i = rmesa->hw.fog.cmd[FOG_D];
388 if (!ctx->Fog.Enabled)
392 switch (ctx->Fog.Mode) {
395 if (ctx->Fog.Start == ctx->Fog.End) {
400 c.f = ctx->Fog.End/(ctx->Fog.End-ctx->Fog.Start);
401 d.f = -1.0/(ctx->Fog.End-ctx->Fog.Start);
407 d.f = -ctx->Fog.Density;
412 d.f = -(ctx->Fog.Density * ctx->Fog.Density);
419 switch (ctx->Fog.Mode) {
422 d.f = -ctx->Fog.Density;
426 d.f = -(ctx->Fog.Density * ctx->Fog.Density);
434 if (ctx->Fog.Mode == GL_LINEAR) {
435 if (ctx->Fog.Start == ctx->Fog.End) {
439 c.f = ctx->Fog.End/(ctx->Fog.End-ctx->Fog.Start);
440 d.f = -1.0/(ctx->Fog.End-ctx->Fog.Start);
446 _mesa_unclamped_float_rgba_to_ubyte(col, ctx->Fog.Color );
453 GLuint fog = rmesa->hw.ctx.cmd[CTX_PP_FOG_COLOR];
455 fog &= ~R200_FOG_USE_MASK;
456 if ( ctx->Fog.FogCoordinateSource == GL_FOG_COORD || ctx->VertexProgram.Enabled) {
457 fog |= R200_FOG_USE_VTX_FOG;
461 fog |= R200_FOG_USE_SPEC_ALPHA;
465 if ( fog != rmesa->hw.ctx.cmd[CTX_PP_FOG_COLOR] ) {
467 rmesa->hw.ctx.cmd[CTX_PP_FOG_COLOR] = fog;
481 if (c.i != rmesa->hw.fog.cmd[FOG_C] || d.i != rmesa->hw.fog.cmd[FOG_D]) {
482 R200_STATECHANGE( rmesa, fog );
483 rmesa->hw.fog.cmd[FOG_C] = c.i;
484 rmesa->hw.fog.cmd[FOG_D] = d.i;
794 } else if (ctx->Fog.ColorSumEnabled ) {
804 if (ctx->Fog.Enabled) {
2008 R200_STATECHANGE( rmesa, fog );