vecFog
A vector calculated from the current view's
clip and fog parameters.
Algorithm
vecFog.x = float(view.clip_near + view.fog_start);
vecFog.y = float(view.clip_near + view.fog_end);
vecFog.z = 1.0f / float(view.fog_end - view.fog_start);
vecFog.w = 1.0f;
Type
float4
See also:
MATERIAL, VIEW, shaders, shader
parameters, fog_start, fog_end, fog_color, d3d_fogcolor, vecFogColor
► latest
version online