Home
last modified time | relevance | path

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

1234

/external/mesa3d/src/mesa/main/
Dfog.c93 ctx->Fog._PackedMode = FOG_LINEAR; in _mesa_Fogfv()
96 ctx->Fog._PackedMode = FOG_EXP; in _mesa_Fogfv()
99 ctx->Fog._PackedMode = FOG_EXP2; in _mesa_Fogfv()
105 if (ctx->Fog.Mode == m) in _mesa_Fogfv()
108 ctx->Fog.Mode = m; in _mesa_Fogfv()
109 ctx->Fog._PackedEnabledMode = ctx->Fog.Enabled ? in _mesa_Fogfv()
110 ctx->Fog._PackedMode : FOG_NONE; in _mesa_Fogfv()
117 if (ctx->Fog.Density == *params) in _mesa_Fogfv()
120 ctx->Fog.Density = *params; in _mesa_Fogfv()
123 if (ctx->Fog.Start == *params) in _mesa_Fogfv()
[all …]
Dhint.c55 if (ctx->Hint.Fog == mode) in _mesa_Hint()
58 ctx->Hint.Fog = mode; in _mesa_Hint()
156 ctx->Hint.Fog = GL_DONT_CARE; in _mesa_init_hint()
Dstate.h80 if (ctx->Fog.ColorSumEnabled) in _mesa_need_secondary_color()
/external/mesa3d/src/mesa/swrast/
Ds_fog.c43 switch (ctx->Fog.Mode) { in _swrast_z_to_fogfactor()
45 if (ctx->Fog.Start == ctx->Fog.End) in _swrast_z_to_fogfactor()
48 d = 1.0F / (ctx->Fog.End - ctx->Fog.Start); in _swrast_z_to_fogfactor()
49 f = (ctx->Fog.End - z) * d; in _swrast_z_to_fogfactor()
52 d = ctx->Fog.Density; in _swrast_z_to_fogfactor()
57 d = ctx->Fog.Density; in _swrast_z_to_fogfactor()
143 rFog = ctx->Fog.Color[RCOMP] * 255.0F; in _swrast_fog_rgba_span()
144 gFog = ctx->Fog.Color[GCOMP] * 255.0F; in _swrast_fog_rgba_span()
145 bFog = ctx->Fog.Color[BCOMP] * 255.0F; in _swrast_fog_rgba_span()
148 rFog = ctx->Fog.Color[RCOMP] * 65535.0F; in _swrast_fog_rgba_span()
[all …]
Ds_context.c170 (ctx->Hint.Fog == GL_NICEST && in _swrast_update_fog_hint()
254 ctx->Fog.Enabled); in _swrast_update_fog_state()
281 GLboolean separateSpecular = ctx->Fog.ColorSumEnabled || in _swrast_update_specular_vertex_add()
515 if (ctx->Fog.ColorSumEnabled || in _swrast_update_active_attribs()
/external/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_fog.c98 GLfloat end = ctx->Fog.End; in radeonComputeFogBlendFactor()
102 switch (ctx->Fog.Mode) { in radeonComputeFogBlendFactor()
104 if (ctx->Fog.Start == ctx->Fog.End) in radeonComputeFogBlendFactor()
107 d = 1.0F / (ctx->Fog.End - ctx->Fog.Start); in radeonComputeFogBlendFactor()
112 d = ctx->Fog.Density; in radeonComputeFogBlendFactor()
117 d = ctx->Fog.Density*ctx->Fog.Density; in radeonComputeFogBlendFactor()
Dr200_state.c391 if (!ctx->Fog.Enabled) in r200Fogfv()
395 switch (ctx->Fog.Mode) { in r200Fogfv()
398 if (ctx->Fog.Start == ctx->Fog.End) { in r200Fogfv()
403 c.f = ctx->Fog.End/(ctx->Fog.End-ctx->Fog.Start); in r200Fogfv()
404 d.f = -1.0/(ctx->Fog.End-ctx->Fog.Start); in r200Fogfv()
410 d.f = -ctx->Fog.Density; in r200Fogfv()
415 d.f = -(ctx->Fog.Density * ctx->Fog.Density); in r200Fogfv()
422 switch (ctx->Fog.Mode) { in r200Fogfv()
425 d.f = -ctx->Fog.Density; in r200Fogfv()
429 d.f = -(ctx->Fog.Density * ctx->Fog.Density); in r200Fogfv()
[all …]
Dr200_tcl.c408 if ( (ctx->Fog.FogCoordinateSource == GL_FOG_COORD) && ctx->Fog.Enabled ) { in r200_run_tcl_render()
562 (ctx->Fog.FogCoordinateSource == GL_FOG_COORD )) { in transition_to_hwtnl()
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_fog.c98 GLfloat end = ctx->Fog.End; in radeonComputeFogBlendFactor()
102 switch (ctx->Fog.Mode) { in radeonComputeFogBlendFactor()
104 if (ctx->Fog.Start == ctx->Fog.End) in radeonComputeFogBlendFactor()
107 d = 1.0F / (ctx->Fog.End - ctx->Fog.Start); in radeonComputeFogBlendFactor()
112 d = ctx->Fog.Density; in radeonComputeFogBlendFactor()
117 d = ctx->Fog.Density*ctx->Fog.Density; in radeonComputeFogBlendFactor()
Dradeon_state.c324 if (!ctx->Fog.Enabled) in radeonFogfv()
328 switch (ctx->Fog.Mode) { in radeonFogfv()
345 if (!ctx->Fog.Enabled) in radeonFogfv()
349 switch (ctx->Fog.Mode) { in radeonFogfv()
355 d.f = -ctx->Fog.Density; in radeonFogfv()
359 d.f = -(ctx->Fog.Density * ctx->Fog.Density); in radeonFogfv()
362 if (ctx->Fog.Start == ctx->Fog.End) { in radeonFogfv()
366 c.f = ctx->Fog.End/(ctx->Fog.End-ctx->Fog.Start); in radeonFogfv()
370 d.f = -1.0/(ctx->Fog.End-ctx->Fog.Start); in radeonFogfv()
384 _mesa_unclamped_float_rgba_to_ubyte(col, ctx->Fog.Color ); in radeonFogfv()
[all …]
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/tnl/
Dt_vb_fog.c100 GLfloat end = ctx->Fog.End; in compute_fog_blend_factors()
110 switch (ctx->Fog.Mode) { in compute_fog_blend_factors()
112 if (ctx->Fog.Start == ctx->Fog.End) in compute_fog_blend_factors()
115 d = 1.0F / (ctx->Fog.End - ctx->Fog.Start); in compute_fog_blend_factors()
123 d = ctx->Fog.Density; in compute_fog_blend_factors()
130 d = ctx->Fog.Density*ctx->Fog.Density; in compute_fog_blend_factors()
152 if (!ctx->Fog.Enabled) in run_fog_stage()
155 if (ctx->Fog.FogCoordinateSource == GL_FRAGMENT_DEPTH_EXT && !ctx->VertexProgram._Current) { in run_fog_stage()
Dt_context.c141 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST)) in _tnl_InvalidateState()
167 if (ctx->Fog.Enabled in _tnl_InvalidateState()
239 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST)) in _tnl_allow_vertex_fog()
249 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST)) in _tnl_allow_pixel_fog()
/external/mesa3d/src/mesa/program/
Dprogram_parse_extra.c100 if (state->option.Fog == OPTION_NONE) { in _mesa_ARBfp_parse_option()
101 state->option.Fog = fog_option; in _mesa_ARBfp_parse_option()
124 return state->option.Fog == fog_option ? 1 : 0; in _mesa_ARBfp_parse_option()
Dprog_statevars.c258 COPY_4V(value, ctx->Fog.Color); in fetch_state()
260 COPY_4V(value, ctx->Fog.ColorUnclamped); in fetch_state()
263 value[0] = ctx->Fog.Density; in fetch_state()
264 value[1] = ctx->Fog.Start; in fetch_state()
265 value[2] = ctx->Fog.End; in fetch_state()
266 value[3] = 1.0f / (ctx->Fog.End - ctx->Fog.Start); in fetch_state()
470 value[0] = (ctx->Fog.End == ctx->Fog.Start) in fetch_state()
471 ? 1.0f : (GLfloat)(-1.0F / (ctx->Fog.End - ctx->Fog.Start)); in fetch_state()
472 value[1] = ctx->Fog.End * -value[0]; in fetch_state()
473 value[2] = (GLfloat)(ctx->Fog.Density * M_LOG2E); /* M_LOG2E == 1/ln(2) */ in fetch_state()
[all …]
Darbprogparse.c137 if (state.option.Fog != OPTION_NONE) { in _mesa_parse_arb_fragment_program()
145 _mesa_append_fog_code(ctx, program, fog_modes[state.option.Fog], GL_TRUE); in _mesa_parse_arb_fragment_program()
Dprogram_parser.h209 unsigned Fog:2; member
/external/mesa3d/src/mesa/drivers/common/
Ddriverfuncs.c250 ctx->Driver.Enable(ctx, GL_COLOR_SUM, ctx->Fog.ColorSumEnabled); in _mesa_init_driver_state()
254 ctx->Driver.Enable(ctx, GL_FOG, ctx->Fog.Enabled); in _mesa_init_driver_state()
266 ctx->Driver.Fogfv(ctx, GL_FOG_COLOR, ctx->Fog.Color); in _mesa_init_driver_state()
268 GLfloat mode = (GLfloat) ctx->Fog.Mode; in _mesa_init_driver_state()
271 ctx->Driver.Fogfv(ctx, GL_FOG_DENSITY, &ctx->Fog.Density); in _mesa_init_driver_state()
272 ctx->Driver.Fogfv(ctx, GL_FOG_START, &ctx->Fog.Start); in _mesa_init_driver_state()
273 ctx->Driver.Fogfv(ctx, GL_FOG_END, &ctx->Fog.End); in _mesa_init_driver_state()
/external/swiftshader/src/Renderer/
DVertex.hpp38 Fog = 11, // x component enumerator
39 Pts = Fog, // y component
DPixelProcessor.hpp165 struct Fog struct in sw::PixelProcessor
324 Fog fog;
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnv04_state_raster.c224 if (ctx->Fog.Enabled) { in nv04_emit_blend()
226 nv04->fog = pack_rgba_f(MESA_FORMAT_B8G8R8A8_UNORM, ctx->Fog.Color); in nv04_emit_blend()
Dnv10_state_tnl.c107 struct gl_fog_attrib *f = &ctx->Fog; in nv10_get_fog_coeff()
137 struct gl_fog_attrib *f = &ctx->Fog; in nv10_emit_fog()
210 (!ctx->Light.Enabled && ctx->Fog.ColorSumEnabled ? in nv10_emit_light_model()
453 if (ctx->Light._NeedEyeCoords || ctx->Fog.Enabled || in nv10_emit_modelview()
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_pixel.c101 if (ctx->Fog.Enabled) { in intel_check_blit_fragment_ops()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_pixel.c98 if (ctx->Fog.Enabled) { in intel_check_blit_fragment_ops()
/external/angle/src/tests/gles1_conformance_tests/
DPrimtestTests.cpp127 TEST_P(GLES1PrimtestTest, Fog) in TEST_P() argument

1234