/external/mesa3d/src/mesa/main/ |
D | fog.c | 88 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 …]
|
D | hint.c | 56 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()
|
D | state.h | 59 if (ctx->Fog.ColorSumEnabled) in _mesa_need_secondary_color()
|
/external/mesa3d/src/mesa/swrast/ |
D | s_fog.c | 42 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/ |
D | radeon_fog.c | 97 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()
|
D | radeon_state.c | 323 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 …]
|
D | 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 ) 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()
|
D | radeon_maos_verts.c | 67 #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/ |
D | radeon_fog.c | 97 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()
|
D | r200_state.c | 388 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 …]
|
D | r200_tcl.c | 409 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/ |
D | t_vb_fog.c | 99 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()
|
D | t_context.c | 134 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/ |
D | program_parse_extra.c | 180 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()
|
D | prog_statevars.c | 250 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 …]
|
D | arbprogparse.c | 138 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()
|
D | program_parser.h | 204 unsigned Fog:2; member
|
/external/mesa3d/src/mesa/drivers/common/ |
D | driverfuncs.c | 262 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/ |
D | ColorAttribute.java | 37 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/ |
D | nv04_state_raster.c | 222 if (ctx->Fog.Enabled) { in nv04_emit_blend() 224 nv04->fog = pack_rgba_f(MESA_FORMAT_ARGB8888, ctx->Fog.Color); in nv04_emit_blend()
|
D | nv10_state_tnl.c | 106 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()
|
D | nouveau_vbo_t.c | 171 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/ |
D | intel_pixel.c | 103 if (ctx->Fog.Enabled) { in intel_check_blit_fragment_ops()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | intel_pixel.c | 103 if (ctx->Fog.Enabled) { in intel_check_blit_fragment_ops()
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
D | intel_pixel.c | 103 if (ctx->Fog.Enabled) { in intel_check_blit_fragment_ops()
|