Searched refs:Fog (Results 1 - 25 of 59) sorted by relevance

123

/external/mesa3d/src/mesa/main/
H A Dfog.c87 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 Dhint.c55 if (ctx->Hint.Fog == mode)
58 ctx->Hint.Fog = mode;
145 ctx->Hint.Fog = GL_DONT_CARE;
H A Dstate.h59 if (ctx->Fog.ColorSumEnabled)
/external/mesa3d/src/mesa/drivers/dri/r200/
H A Dradeon_fog.c47 /* 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 Dr200_state.c375 * 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 Dradeon_fog.c47 /* 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 Dradeon_state.c315 * 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 Dradeon_maos_verts.c68 #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 Ds_fog.c42 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 DVertex.hpp38 Fog = 11, // x component enumerator in enum:sw::Out
39 Pts = Fog, // y component
78 float f; // Fog
H A DPixelProcessor.hpp163 struct Fog struct in class:sw::PixelProcessor
317 Fog fog;
/external/mesa3d/src/mesa/program/
H A Dprogram_parse_extra.c100 if (state->option.Fog == OPTION_NONE) {
101 state->option.Fog = fog_option;
124 return state->option.Fog == fog_option ? 1 : 0;
H A Dprog_statevars.c258 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 Dprogram_parser.h207 unsigned Fog:2; member in struct:asm_parser_state::__anon16034
H A Darbprogparse.c136 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 Dt_vb_fog.c90 * 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 Dt_context.c140 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 Dintel_pixel.c103 if (ctx->Fog.Enabled) {
H A Dintel_pixel_copy.c119 if (ctx->Fog.Enabled ||
/external/mesa3d/src/mesa/drivers/common/
H A Ddriverfuncs.c242 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 Dnv04_state_raster.c223 /* Fog. */
224 if (ctx->Fog.Enabled) {
226 nv04->fog = pack_rgba_f(MESA_FORMAT_B8G8R8A8_UNORM, ctx->Fog.Color);
H A Dnv10_state_tnl.c107 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 Dintel_pixel.c100 if (ctx->Fog.Enabled) {
H A Dintel_pixel_copy.c123 if (ctx->Fog.Enabled ||
/external/mesa3d/src/mesa/state_tracker/
H A Dst_atom_shader.c137 if (st->ctx->Fog.Enabled) {
138 key.fog = translate_fog_mode(st->ctx->Fog.Mode);

Completed in 594 milliseconds

123