HomeSort by relevance Sort by last modified time
    Searched refs:Fog (Results 1 - 25 of 46) sorted by null

1 2

  /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/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...]
radeon_state.c 311 * Fog
323 if (!ctx->Fog.Enabled)
327 switch (ctx->Fog.Mode) {
344 if (!ctx->Fog.Enabled)
346 c.i = rmesa->hw.fog.cmd[FOG_C];
347 d.i = rmesa->hw.fog.cmd[FOG_D];
348 switch (ctx->Fog.Mode) {
351 /* While this is the opposite sign from the DDK, it makes the fog test
354 d.f = -ctx->Fog.Density;
358 d.f = -(ctx->Fog.Density * ctx->Fog.Density)
    [all...]
radeon_maos_verts.c 67 #define DO_FOG ((IND & RADEON_CP_VC_FRMT_PKSPEC) && ctx->Fog.Enabled && \
68 (ctx->Fog.FogCoordinateSource == GL_FOG_COORD))
radeon_state_init.c 212 CHECK( fog_add4, ctx->Fog.Enabled, 4 )
234 TCL_CHECK( tcl_eyespace_or_fog_add4, ctx->_NeedEyeCoords || ctx->Fog.Enabled, 4 )
544 ALLOC_STATE( fog, fog_add4, FOG_STATE_SIZE, "FOG/fog", 1 );
620 rmesa->hw.fog.cmd[FOG_CMD_0] =
649 rmesa->hw.fog.emit = vec_emit;
673 /* this bit unused for vertex fog */
    [all...]
radeon_tcl.c 383 if ( (ctx->Fog.FogCoordinateSource == GL_FOG_COORD) && ctx->Fog.Enabled ) {
  /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/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/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...]
program_parser.h 204 unsigned Fog:2;
arbprogparse.c 44 + a state variable, like "state.fog.color", or
133 /* Append fog instructions now if the program has "OPTION ARB_fog_exp"
135 * there's no hardware that wants to do fog in a discrete stage separate
138 if (state.option.Fog != OPTION_NONE) {
146 _mesa_append_fog_code(ctx, program, fog_modes[state.option.Fog], GL_TRUE);
  /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/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);
nv10_state_tnl.c 106 struct gl_fog_attrib *f = &ctx->Fog;
136 struct gl_fog_attrib *f = &ctx->Fog;
209 (!ctx->Light.Enabled && ctx->Fog.ColorSumEnabled ?
446 if (ctx->Light._NeedEyeCoords || ctx->Fog.Enabled ||
nouveau_vbo_t.c 171 if (ctx->Fog.ColorSumEnabled && !ctx->Light.Enabled)
179 if (ctx->Fog.Enabled && ctx->Fog.FogCoordinateSource == GL_FOG_COORD)
nv10_state_frag.c 341 if (ctx->Fog.ColorSumEnabled || ctx->Light.Enabled) {
346 if (ctx->Fog.Enabled) {
347 INPUT_SRC(&rc, A, FOG, ALPHA);
348 INPUT_SRC(&rc, C, FOG, RGB);
349 INPUT_SRC(&rc, E, FOG, ALPHA);
nv20_state_tnl.c 155 struct gl_fog_attrib *f = &ctx->Fog;
342 if (ctx->Light._NeedEyeCoords || ctx->Fog.Enabled ||
  /external/mesa3d/src/mesa/drivers/dri/intel/
intel_pixel.c 103 if (ctx->Fog.Enabled) {
104 DBG("fallback due to fog\n");
intel_pixel_copy.c 61 ctx->Fog.Enabled ||
  /external/mesa3d/src/mesa/drivers/dri/r200/
r200_state.c 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)
453 GLuint fog = rmesa->hw.ctx.cmd[CTX_PP_FOG_COLOR]; local
    [all...]
r200_tcl.c 364 /* use hw fixed order for simplicity, pos 0, weight 1, normal 2, fog 3,
409 if ( (ctx->Fog.FogCoordinateSource == GL_FOG_COORD) && ctx->Fog.Enabled ) {
563 (ctx->Fog.FogCoordinateSource == GL_FOG_COORD )) {

Completed in 81 milliseconds

1 2