/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
fog.c | 29 #include "fog.h" 88 if (ctx->Fog.End == ctx->Fog.Start) 89 ctx->Fog._Scale = 1.0f; 91 ctx->Fog._Scale = 1.0f / (ctx->Fog.End - ctx->Fog.Start); 114 if (ctx->Fog.Mode == m) 117 ctx->Fog.Mode = m; 124 if (ctx->Fog.Density == *params [all...] |
state.h | 59 if (ctx->Fog.ColorSumEnabled)
|
hint.c | 56 if (ctx->Hint.Fog == mode) 59 ctx->Hint.Fog = mode; 161 ctx->Hint.Fog = GL_DONT_CARE;
|
/external/mesa3d/src/mesa/main/ |
fog.c | 29 #include "fog.h" 88 if (ctx->Fog.End == ctx->Fog.Start) 89 ctx->Fog._Scale = 1.0f; 91 ctx->Fog._Scale = 1.0f / (ctx->Fog.End - ctx->Fog.Start); 114 if (ctx->Fog.Mode == m) 117 ctx->Fog.Mode = m; 124 if (ctx->Fog.Density == *params [all...] |
state.h | 59 if (ctx->Fog.ColorSumEnabled)
|
hint.c | 56 if (ctx->Hint.Fog == mode) 59 ctx->Hint.Fog = mode; 161 ctx->Hint.Fog = GL_DONT_CARE;
|
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/radeon/ |
radeon_fog.c | 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 [all...] |
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
radeon_fog.c | 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 [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/swrast/ |
s_fog.c | 35 * Used to convert current raster distance to a fog factor in [0,1]. 42 switch (ctx->Fog.Mode) { 44 if (ctx->Fog.Start == ctx->Fog.End) 47 d = 1.0F / (ctx->Fog.End - ctx->Fog.Start); 48 f = (ctx->Fog.End - z) * d; 51 d = ctx->Fog.Density; 56 d = ctx->Fog.Density; 61 _mesa_problem(ctx, "Bad fog mode in _swrast_z_to_fogfactor") [all...] |
/external/mesa3d/src/mesa/swrast/ |
s_fog.c | 35 * Used to convert current raster distance to a fog factor in [0,1]. 42 switch (ctx->Fog.Mode) { 44 if (ctx->Fog.Start == ctx->Fog.End) 47 d = 1.0F / (ctx->Fog.End - ctx->Fog.Start); 48 f = (ctx->Fog.End - z) * d; 51 d = ctx->Fog.Density; 56 d = ctx->Fog.Density; 61 _mesa_problem(ctx, "Bad fog mode in _swrast_z_to_fogfactor") [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/tnl/ |
t_vb_fog.c | 88 * Compute per-vertex fog blend factors from fog coordinates by 89 * evaluating the GL_LINEAR, GL_EXP or GL_EXP2 fog function. 90 * Fog coordinates are distances from the eye (typically between the 94 * Fog blend factors are in the range [0,1]. 99 GLfloat end = ctx->Fog.End; 109 switch (ctx->Fog.Mode) { 111 if (ctx->Fog.Start == ctx->Fog.End) 114 d = 1.0F / (ctx->Fog.End - ctx->Fog.Start) [all...] |
t_context.c | 134 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST)) 159 if (ctx->Fog.Enabled 161 /* Either fixed-function fog or a fragment program needs fog coord. 223 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST)) 233 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST))
|
/external/mesa3d/src/mesa/tnl/ |
t_vb_fog.c | 88 * Compute per-vertex fog blend factors from fog coordinates by 89 * evaluating the GL_LINEAR, GL_EXP or GL_EXP2 fog function. 90 * Fog coordinates are distances from the eye (typically between the 94 * Fog blend factors are in the range [0,1]. 99 GLfloat end = ctx->Fog.End; 109 switch (ctx->Fog.Mode) { 111 if (ctx->Fog.Start == ctx->Fog.End) 114 d = 1.0F / (ctx->Fog.End - ctx->Fog.Start) [all...] |
t_context.c | 134 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST)) 159 if (ctx->Fog.Enabled 161 /* Either fixed-function fog or a fragment program needs fog coord. 223 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST)) 233 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST))
|
/external/chromium_org/third_party/mesa/src/src/mesa/program/ |
program_parse_extra.c | 180 if (state->option.Fog == OPTION_NONE) { 182 state->option.Fog = OPTION_FOG_EXP; 185 state->option.Fog = OPTION_FOG_EXP2; 188 state->option.Fog = OPTION_FOG_LINEAR;
|
prog_statevars.c | 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 [all...] |
program_parser.h | 204 unsigned Fog:2;
|
/external/mesa3d/src/mesa/program/ |
program_parse_extra.c | 180 if (state->option.Fog == OPTION_NONE) { 182 state->option.Fog = OPTION_FOG_EXP; 185 state->option.Fog = OPTION_FOG_EXP2; 188 state->option.Fog = OPTION_FOG_LINEAR;
|
prog_statevars.c | 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 [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/common/ |
driverfuncs.c | 262 ctx->Driver.Enable(ctx, GL_COLOR_SUM, ctx->Fog.ColorSumEnabled); 266 ctx->Driver.Enable(ctx, GL_FOG, ctx->Fog.Enabled); 278 ctx->Driver.Fogfv(ctx, GL_FOG_COLOR, ctx->Fog.Color); 280 GLfloat mode = (GLfloat) ctx->Fog.Mode; 283 ctx->Driver.Fogfv(ctx, GL_FOG_DENSITY, &ctx->Fog.Density); 284 ctx->Driver.Fogfv(ctx, GL_FOG_START, &ctx->Fog.Start); 285 ctx->Driver.Fogfv(ctx, GL_FOG_END, &ctx->Fog.End);
|
/external/mesa3d/src/mesa/drivers/common/ |
driverfuncs.c | 262 ctx->Driver.Enable(ctx, GL_COLOR_SUM, ctx->Fog.ColorSumEnabled); 266 ctx->Driver.Enable(ctx, GL_FOG, ctx->Fog.Enabled); 278 ctx->Driver.Fogfv(ctx, GL_FOG_COLOR, ctx->Fog.Color); 280 GLfloat mode = (GLfloat) ctx->Fog.Mode; 283 ctx->Driver.Fogfv(ctx, GL_FOG_DENSITY, &ctx->Fog.Density); 284 ctx->Driver.Fogfv(ctx, GL_FOG_START, &ctx->Fog.Start); 285 ctx->Driver.Fogfv(ctx, GL_FOG_END, &ctx->Fog.End);
|
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/nouveau/ |
nv04_state_raster.c | 221 /* Fog. */ 222 if (ctx->Fog.Enabled) { 224 nv04->fog = pack_rgba_f(MESA_FORMAT_ARGB8888, ctx->Fog.Color);
|
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
nv04_state_raster.c | 221 /* Fog. */ 222 if (ctx->Fog.Enabled) { 224 nv04->fog = pack_rgba_f(MESA_FORMAT_ARGB8888, ctx->Fog.Color);
|
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/intel/ |
intel_pixel.c | 103 if (ctx->Fog.Enabled) { 104 DBG("fallback due to fog\n");
|
/external/mesa3d/src/mesa/drivers/dri/intel/ |
intel_pixel.c | 103 if (ctx->Fog.Enabled) { 104 DBG("fallback due to fog\n");
|