/external/mesa3d/src/mesa/main/ |
fog.c | 28 #include "fog.h" 87 if (ctx->Fog.End == ctx->Fog.Start) 88 ctx->Fog._Scale = 1.0f; 90 ctx->Fog._Scale = 1.0f / (ctx->Fog.End - ctx->Fog.Start); 112 if (ctx->Fog.Mode == m) 115 ctx->Fog.Mode = m; 122 if (ctx->Fog.Density == *params [all...] |
hint.c | 55 if (ctx->Hint.Fog == mode) 58 ctx->Hint.Fog = mode; 145 ctx->Hint.Fog = GL_DONT_CARE;
|
state.h | 59 if (ctx->Fog.ColorSumEnabled)
|
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
radeon_fog.c | 47 /* Fog blend factor computation for hw tcl */ 89 * Compute per-vertex fog blend factors from fog coordinates by 90 * evaluating the GL_LINEAR, GL_EXP or GL_EXP2 fog function. 91 * Fog coordinates are distances from the eye (typically between the 93 * Note the fog (eye Z) coords may be negative so we use ABS(z) below. 94 * Fog blend factors are in the range [0,1]. 99 GLfloat end = ctx->Fog.End; 103 switch (ctx->Fog.Mode) { 105 if (ctx->Fog.Start == ctx->Fog.End [all...] |
radeon_state.c | 315 * Fog 327 if (!ctx->Fog.Enabled) 331 switch (ctx->Fog.Mode) { 348 if (!ctx->Fog.Enabled) 350 c.i = rmesa->hw.fog.cmd[FOG_C]; 351 d.i = rmesa->hw.fog.cmd[FOG_D]; 352 switch (ctx->Fog.Mode) { 355 /* While this is the opposite sign from the DDK, it makes the fog test 358 d.f = -ctx->Fog.Density; 362 d.f = -(ctx->Fog.Density * ctx->Fog.Density) [all...] |
radeon_maos_verts.c | 68 #define DO_FOG ((IND & RADEON_CP_VC_FRMT_PKSPEC) && ctx->Fog.Enabled && \ 69 (ctx->Fog.FogCoordinateSource == GL_FOG_COORD))
|
/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/swiftshader/src/Renderer/ |
Vertex.hpp | 38 Fog = 11, // x component 39 Pts = Fog, // y component 78 float f; // Fog
|
/external/mesa3d/src/mesa/program/ |
program_parse_extra.c | 100 if (state->option.Fog == OPTION_NONE) { 101 state->option.Fog = fog_option; 109 * "Only one fog application option may be specified by any given 124 return state->option.Fog == fog_option ? 1 : 0;
|
prog_statevars.c | 258 COPY_4V(value, ctx->Fog.Color); 260 COPY_4V(value, ctx->Fog.ColorUnclamped); 263 value[0] = ctx->Fog.Density; 264 value[1] = ctx->Fog.Start; 265 value[2] = ctx->Fog.End; 266 value[3] = 1.0f / (ctx->Fog.End - ctx->Fog.Start); 480 /* for simpler per-vertex/pixel fog calcs. POW (for EXP/EXP2 fog) 482 * another constant (e) anyway. Linear fog can now be done with [all...] |
program_parser.h | 207 unsigned Fog:2;
|
arbprogparse.c | 44 + a state variable, like "state.fog.color", or 131 /* Append fog instructions now if the program has "OPTION ARB_fog_exp" 133 * there's no hardware that wants to do fog in a discrete stage separate 136 if (state.option.Fog != OPTION_NONE) { 144 _mesa_append_fog_code(ctx, program, fog_modes[state.option.Fog], GL_TRUE);
|
/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 | 140 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST)) 165 if (ctx->Fog.Enabled 167 /* Either fixed-function fog or a fragment program needs fog coord. 237 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST)) 247 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST))
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
intel_pixel.c | 103 if (ctx->Fog.Enabled) { 104 DBG("fallback due to fog\n");
|
intel_pixel_copy.c | 119 if (ctx->Fog.Enabled ||
|
/external/mesa3d/src/mesa/drivers/common/ |
driverfuncs.c | 242 ctx->Driver.Enable(ctx, GL_COLOR_SUM, ctx->Fog.ColorSumEnabled); 246 ctx->Driver.Enable(ctx, GL_FOG, ctx->Fog.Enabled); 258 ctx->Driver.Fogfv(ctx, GL_FOG_COLOR, ctx->Fog.Color); 260 GLfloat mode = (GLfloat) ctx->Fog.Mode; 263 ctx->Driver.Fogfv(ctx, GL_FOG_DENSITY, &ctx->Fog.Density); 264 ctx->Driver.Fogfv(ctx, GL_FOG_START, &ctx->Fog.Start); 265 ctx->Driver.Fogfv(ctx, GL_FOG_END, &ctx->Fog.End);
|
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
nv04_state_raster.c | 223 /* Fog. */ 224 if (ctx->Fog.Enabled) { 226 nv04->fog = pack_rgba_f(MESA_FORMAT_B8G8R8A8_UNORM, ctx->Fog.Color);
|
nv10_state_tnl.c | 107 struct gl_fog_attrib *f = &ctx->Fog; 137 struct gl_fog_attrib *f = &ctx->Fog; 210 (!ctx->Light.Enabled && ctx->Fog.ColorSumEnabled ? 453 if (ctx->Light._NeedEyeCoords || ctx->Fog.Enabled ||
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
intel_pixel.c | 100 if (ctx->Fog.Enabled) { 101 DBG("fallback due to fog\n");
|
intel_pixel_copy.c | 123 if (ctx->Fog.Enabled ||
|
/external/mesa3d/src/mesa/drivers/dri/r200/ |
r200_state.c | 375 * Fog 386 c.i = rmesa->hw.fog.cmd[FOG_C]; 387 d.i = rmesa->hw.fog.cmd[FOG_D]; 391 if (!ctx->Fog.Enabled) 395 switch (ctx->Fog.Mode) { 398 if (ctx->Fog.Start == ctx->Fog.End) { 403 c.f = ctx->Fog.End/(ctx->Fog.End-ctx->Fog.Start) 456 GLuint fog = rmesa->hw.ctx.cmd[CTX_PP_FOG_COLOR]; local [all...] |
/prebuilts/go/darwin-x86/src/cmd/link/ |
link_test.go | 6 fog int ` 9 Fog everywhere. Fog up the river, where it flows among green aits and meadows; fog down the river, where it rolls defiled among the tiers of shipping and the waterside pollutions of a great (and dirty) city. Fog on the Essex marshes, fog on the Kentish heights. Fog creeping into the cabooses of collier-brigs; fog lying out on the yards and hovering in the rigging of great ships; fog drooping on the gunwales of barges and small boats. Fog in the eyes and throats of ancient Greenwich pensioners, wheezing by the firesides of their wards; (…) [all...] |
/prebuilts/go/linux-x86/src/cmd/link/ |
link_test.go | 6 fog int ` 9 Fog everywhere. Fog up the river, where it flows among green aits and meadows; fog down the river, where it rolls defiled among the tiers of shipping and the waterside pollutions of a great (and dirty) city. Fog on the Essex marshes, fog on the Kentish heights. Fog creeping into the cabooses of collier-brigs; fog lying out on the yards and hovering in the rigging of great ships; fog drooping on the gunwales of barges and small boats. Fog in the eyes and throats of ancient Greenwich pensioners, wheezing by the firesides of their wards; (…) [all...] |
/external/mesa3d/src/mesa/state_tracker/ |
st_atom_shader.c | 57 /** Compress the fog function enums into a 2-bit value */ 137 if (st->ctx->Fog.Enabled) { 138 key.fog = translate_fog_mode(st->ctx->Fog.Mode);
|