/external/mesa3d/src/mesa/main/ |
H A D | fog.c | 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) 125 ctx->Fog [all...] |
H A D | hint.c | 55 if (ctx->Hint.Fog == mode) 58 ctx->Hint.Fog = mode; 145 ctx->Hint.Fog = GL_DONT_CARE;
|
H A D | state.h | 59 if (ctx->Fog.ColorSumEnabled)
|
/external/mesa3d/src/mesa/drivers/dri/r200/ |
H A D | radeon_fog.c | 47 /* Fog blend factor computation for hw tcl */ 91 * 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; 103 switch (ctx->Fog.Mode) { 105 if (ctx->Fog.Start == ctx->Fog.End) 108 d = 1.0F / (ctx->Fog.End - ctx->Fog.Start); 113 d = ctx->Fog [all...] |
H A D | r200_state.c | 375 * Fog 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); 404 d.f = -1.0/(ctx->Fog.End-ctx->Fog [all...] |
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
H A D | radeon_fog.c | 47 /* Fog blend factor computation for hw tcl */ 91 * 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; 103 switch (ctx->Fog.Mode) { 105 if (ctx->Fog.Start == ctx->Fog.End) 108 d = 1.0F / (ctx->Fog.End - ctx->Fog.Start); 113 d = ctx->Fog [all...] |
H A D | radeon_state.c | 315 * Fog 327 if (!ctx->Fog.Enabled) 331 switch (ctx->Fog.Mode) { 348 if (!ctx->Fog.Enabled) 352 switch (ctx->Fog.Mode) { 358 d.f = -ctx->Fog.Density; 362 d.f = -(ctx->Fog.Density * ctx->Fog.Density); 365 if (ctx->Fog.Start == ctx->Fog [all...] |
H A D | 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/ |
H A D | s_fog.c | 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; 142 rFog = ctx->Fog.Color[RCOMP] * 255.0F; 143 gFog = ctx->Fog [all...] |
/external/swiftshader/src/Renderer/ |
H A D | Vertex.hpp | 38 Fog = 11, // x component enumerator in enum:sw::Out 39 Pts = Fog, // y component 78 float f; // Fog
|
H A D | PixelProcessor.hpp | 163 struct Fog struct in class:sw::PixelProcessor 317 Fog fog;
|
/external/mesa3d/src/mesa/program/ |
H A D | program_parse_extra.c | 100 if (state->option.Fog == OPTION_NONE) { 101 state->option.Fog = fog_option; 124 return state->option.Fog == fog_option ? 1 : 0;
|
H A D | 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); 488 value[0] = (ctx->Fog.End == ctx->Fog.Start) 489 ? 1.0f : (GLfloat)(-1.0F / (ctx->Fog [all...] |
H A D | program_parser.h | 207 unsigned Fog:2; member in struct:asm_parser_state::__anon16034
|
H A D | arbprogparse.c | 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/ |
H A D | t_vb_fog.c | 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); 122 d = ctx->Fog.Density; 129 d = ctx->Fog [all...] |
H A D | t_context.c | 140 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST)) 165 if (ctx->Fog.Enabled 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/ |
H A D | intel_pixel.c | 103 if (ctx->Fog.Enabled) {
|
H A D | intel_pixel_copy.c | 119 if (ctx->Fog.Enabled ||
|
/external/mesa3d/src/mesa/drivers/common/ |
H A D | 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/ |
H A D | nv04_state_raster.c | 223 /* Fog. */ 224 if (ctx->Fog.Enabled) { 226 nv04->fog = pack_rgba_f(MESA_FORMAT_B8G8R8A8_UNORM, ctx->Fog.Color);
|
H A D | 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/ |
H A D | intel_pixel.c | 100 if (ctx->Fog.Enabled) {
|
H A D | intel_pixel_copy.c | 123 if (ctx->Fog.Enabled ||
|
/external/mesa3d/src/mesa/state_tracker/ |
H A D | st_atom_shader.c | 137 if (st->ctx->Fog.Enabled) { 138 key.fog = translate_fog_mode(st->ctx->Fog.Mode);
|