Home
last modified time | relevance | path

Searched refs:Fog (Results 1 – 25 of 54) sorted by relevance

123

/external/mesa3d/src/mesa/main/
Dfog.c88 if (ctx->Fog.End == ctx->Fog.Start) in update_fog_scale()
89 ctx->Fog._Scale = 1.0f; in update_fog_scale()
91 ctx->Fog._Scale = 1.0f / (ctx->Fog.End - ctx->Fog.Start); in update_fog_scale()
114 if (ctx->Fog.Mode == m) in _mesa_Fogfv()
117 ctx->Fog.Mode = m; in _mesa_Fogfv()
124 if (ctx->Fog.Density == *params) in _mesa_Fogfv()
127 ctx->Fog.Density = *params; in _mesa_Fogfv()
130 if (ctx->Fog.Start == *params) in _mesa_Fogfv()
133 ctx->Fog.Start = *params; in _mesa_Fogfv()
137 if (ctx->Fog.End == *params) in _mesa_Fogfv()
[all …]
Dhint.c56 if (ctx->Hint.Fog == mode) in _mesa_Hint()
59 ctx->Hint.Fog = mode; in _mesa_Hint()
161 ctx->Hint.Fog = GL_DONT_CARE; in _mesa_init_hint()
Dstate.h59 if (ctx->Fog.ColorSumEnabled) in _mesa_need_secondary_color()
/external/mesa3d/src/mesa/swrast/
Ds_fog.c42 switch (ctx->Fog.Mode) { in _swrast_z_to_fogfactor()
44 if (ctx->Fog.Start == ctx->Fog.End) in _swrast_z_to_fogfactor()
47 d = 1.0F / (ctx->Fog.End - ctx->Fog.Start); in _swrast_z_to_fogfactor()
48 f = (ctx->Fog.End - z) * d; in _swrast_z_to_fogfactor()
51 d = ctx->Fog.Density; in _swrast_z_to_fogfactor()
56 d = ctx->Fog.Density; in _swrast_z_to_fogfactor()
142 rFog = ctx->Fog.Color[RCOMP] * 255.0F; in _swrast_fog_rgba_span()
143 gFog = ctx->Fog.Color[GCOMP] * 255.0F; in _swrast_fog_rgba_span()
144 bFog = ctx->Fog.Color[BCOMP] * 255.0F; in _swrast_fog_rgba_span()
147 rFog = ctx->Fog.Color[RCOMP] * 65535.0F; in _swrast_fog_rgba_span()
[all …]
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_fog.c97 GLfloat end = ctx->Fog.End; in radeonComputeFogBlendFactor()
101 switch (ctx->Fog.Mode) { in radeonComputeFogBlendFactor()
103 if (ctx->Fog.Start == ctx->Fog.End) in radeonComputeFogBlendFactor()
106 d = 1.0F / (ctx->Fog.End - ctx->Fog.Start); in radeonComputeFogBlendFactor()
111 d = ctx->Fog.Density; in radeonComputeFogBlendFactor()
116 d = ctx->Fog.Density*ctx->Fog.Density; in radeonComputeFogBlendFactor()
Dradeon_state.c323 if (!ctx->Fog.Enabled) in radeonFogfv()
327 switch (ctx->Fog.Mode) { in radeonFogfv()
344 if (!ctx->Fog.Enabled) in radeonFogfv()
348 switch (ctx->Fog.Mode) { in radeonFogfv()
354 d.f = -ctx->Fog.Density; in radeonFogfv()
358 d.f = -(ctx->Fog.Density * ctx->Fog.Density); in radeonFogfv()
361 if (ctx->Fog.Start == ctx->Fog.End) { in radeonFogfv()
365 c.f = ctx->Fog.End/(ctx->Fog.End-ctx->Fog.Start); in radeonFogfv()
369 d.f = -1.0/(ctx->Fog.End-ctx->Fog.Start); in radeonFogfv()
383 _mesa_unclamped_float_rgba_to_ubyte(col, ctx->Fog.Color ); in radeonFogfv()
[all …]
Dradeon_state_init.c212 CHECK( fog_add4, ctx->Fog.Enabled, 4 )
234 TCL_CHECK( tcl_eyespace_or_fog_add4, ctx->_NeedEyeCoords || ctx->Fog.Enabled, 4 )
901 ctx->Driver.Fogfv( ctx, GL_FOG_DENSITY, &ctx->Fog.Density ); in radeonInitState()
902 ctx->Driver.Fogfv( ctx, GL_FOG_START, &ctx->Fog.Start ); in radeonInitState()
903 ctx->Driver.Fogfv( ctx, GL_FOG_END, &ctx->Fog.End ); in radeonInitState()
904 ctx->Driver.Fogfv( ctx, GL_FOG_COLOR, ctx->Fog.Color ); in radeonInitState()
Dradeon_maos_verts.c67 #define DO_FOG ((IND & RADEON_CP_VC_FRMT_PKSPEC) && ctx->Fog.Enabled && \
68 (ctx->Fog.FogCoordinateSource == GL_FOG_COORD))
/external/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_fog.c97 GLfloat end = ctx->Fog.End; in radeonComputeFogBlendFactor()
101 switch (ctx->Fog.Mode) { in radeonComputeFogBlendFactor()
103 if (ctx->Fog.Start == ctx->Fog.End) in radeonComputeFogBlendFactor()
106 d = 1.0F / (ctx->Fog.End - ctx->Fog.Start); in radeonComputeFogBlendFactor()
111 d = ctx->Fog.Density; in radeonComputeFogBlendFactor()
116 d = ctx->Fog.Density*ctx->Fog.Density; in radeonComputeFogBlendFactor()
Dr200_state.c388 if (!ctx->Fog.Enabled) in r200Fogfv()
392 switch (ctx->Fog.Mode) { in r200Fogfv()
395 if (ctx->Fog.Start == ctx->Fog.End) { in r200Fogfv()
400 c.f = ctx->Fog.End/(ctx->Fog.End-ctx->Fog.Start); in r200Fogfv()
401 d.f = -1.0/(ctx->Fog.End-ctx->Fog.Start); in r200Fogfv()
407 d.f = -ctx->Fog.Density; in r200Fogfv()
412 d.f = -(ctx->Fog.Density * ctx->Fog.Density); in r200Fogfv()
419 switch (ctx->Fog.Mode) { in r200Fogfv()
422 d.f = -ctx->Fog.Density; in r200Fogfv()
426 d.f = -(ctx->Fog.Density * ctx->Fog.Density); in r200Fogfv()
[all …]
Dr200_tcl.c409 if ( (ctx->Fog.FogCoordinateSource == GL_FOG_COORD) && ctx->Fog.Enabled ) { in r200_run_tcl_render()
563 (ctx->Fog.FogCoordinateSource == GL_FOG_COORD )) { in transition_to_hwtnl()
/external/mesa3d/src/mesa/tnl/
Dt_vb_fog.c99 GLfloat end = ctx->Fog.End; in compute_fog_blend_factors()
109 switch (ctx->Fog.Mode) { in compute_fog_blend_factors()
111 if (ctx->Fog.Start == ctx->Fog.End) in compute_fog_blend_factors()
114 d = 1.0F / (ctx->Fog.End - ctx->Fog.Start); in compute_fog_blend_factors()
122 d = ctx->Fog.Density; in compute_fog_blend_factors()
129 d = ctx->Fog.Density*ctx->Fog.Density; in compute_fog_blend_factors()
151 if (!ctx->Fog.Enabled) in run_fog_stage()
154 if (ctx->Fog.FogCoordinateSource == GL_FRAGMENT_DEPTH_EXT && !ctx->VertexProgram._Current) { in run_fog_stage()
Dt_context.c134 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST)) in _tnl_InvalidateState()
159 if (ctx->Fog.Enabled in _tnl_InvalidateState()
223 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST)) in _tnl_allow_vertex_fog()
233 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST)) in _tnl_allow_pixel_fog()
/external/mesa3d/src/mesa/program/
Dprogram_parse_extra.c180 if (state->option.Fog == OPTION_NONE) { in _mesa_ARBfp_parse_option()
182 state->option.Fog = OPTION_FOG_EXP; in _mesa_ARBfp_parse_option()
185 state->option.Fog = OPTION_FOG_EXP2; in _mesa_ARBfp_parse_option()
188 state->option.Fog = OPTION_FOG_LINEAR; in _mesa_ARBfp_parse_option()
Dprog_statevars.c250 COPY_4V(value, ctx->Fog.Color); in _mesa_fetch_state()
252 COPY_4V(value, ctx->Fog.ColorUnclamped); in _mesa_fetch_state()
255 value[0] = ctx->Fog.Density; in _mesa_fetch_state()
256 value[1] = ctx->Fog.Start; in _mesa_fetch_state()
257 value[2] = ctx->Fog.End; in _mesa_fetch_state()
258 value[3] = (ctx->Fog.End == ctx->Fog.Start) in _mesa_fetch_state()
259 ? 1.0f : (GLfloat)(1.0 / (ctx->Fog.End - ctx->Fog.Start)); in _mesa_fetch_state()
460 value[0] = (ctx->Fog.End == ctx->Fog.Start) in _mesa_fetch_state()
461 ? 1.0f : (GLfloat)(-1.0F / (ctx->Fog.End - ctx->Fog.Start)); in _mesa_fetch_state()
462 value[1] = ctx->Fog.End * -value[0]; in _mesa_fetch_state()
[all …]
Darbprogparse.c138 if (state.option.Fog != OPTION_NONE) { in _mesa_parse_arb_fragment_program()
146 _mesa_append_fog_code(ctx, program, fog_modes[state.option.Fog], GL_TRUE); in _mesa_parse_arb_fragment_program()
Dprogram_parser.h204 unsigned Fog:2; member
/external/mesa3d/src/mesa/drivers/common/
Ddriverfuncs.c262 ctx->Driver.Enable(ctx, GL_COLOR_SUM, ctx->Fog.ColorSumEnabled); in _mesa_init_driver_state()
266 ctx->Driver.Enable(ctx, GL_FOG, ctx->Fog.Enabled); in _mesa_init_driver_state()
278 ctx->Driver.Fogfv(ctx, GL_FOG_COLOR, ctx->Fog.Color); in _mesa_init_driver_state()
280 GLfloat mode = (GLfloat) ctx->Fog.Mode; in _mesa_init_driver_state()
283 ctx->Driver.Fogfv(ctx, GL_FOG_DENSITY, &ctx->Fog.Density); in _mesa_init_driver_state()
284 ctx->Driver.Fogfv(ctx, GL_FOG_START, &ctx->Fog.Start); in _mesa_init_driver_state()
285 ctx->Driver.Fogfv(ctx, GL_FOG_END, &ctx->Fog.End); in _mesa_init_driver_state()
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/attributes/
DColorAttribute.java37 public static final long Fog = register(FogAlias); field in ColorAttribute
39 …ected static long Mask = Ambient | Diffuse | Specular | Emissive | Reflection | AmbientLight | Fog;
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnv04_state_raster.c222 if (ctx->Fog.Enabled) { in nv04_emit_blend()
224 nv04->fog = pack_rgba_f(MESA_FORMAT_ARGB8888, ctx->Fog.Color); in nv04_emit_blend()
Dnv10_state_tnl.c106 struct gl_fog_attrib *f = &ctx->Fog; in nv10_get_fog_coeff()
136 struct gl_fog_attrib *f = &ctx->Fog; in nv10_emit_fog()
209 (!ctx->Light.Enabled && ctx->Fog.ColorSumEnabled ? in nv10_emit_light_model()
446 if (ctx->Light._NeedEyeCoords || ctx->Fog.Enabled || in nv10_emit_modelview()
Dnouveau_vbo_t.c171 if (ctx->Fog.ColorSumEnabled && !ctx->Light.Enabled) in vbo_choose_attrs()
179 if (ctx->Fog.Enabled && ctx->Fog.FogCoordinateSource == GL_FOG_COORD) in vbo_choose_attrs()
/external/mesa3d/src/mesa/drivers/dri/intel/
Dintel_pixel.c103 if (ctx->Fog.Enabled) { in intel_check_blit_fragment_ops()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_pixel.c103 if (ctx->Fog.Enabled) { in intel_check_blit_fragment_ops()
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_pixel.c103 if (ctx->Fog.Enabled) { in intel_check_blit_fragment_ops()

123