git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7841
d7cf8633-e32d-0410-b094-
e92efae38249
r_refdef.fogmasktable_start = r_refdef.fog_start;
r_refdef.fogmasktable_alpha = r_refdef.fog_alpha;
+ r_refdef.fogmasktable_range = r_refdef.fogrange;
s = r_refdef.fogmasktable_start / r_refdef.fogrange;
s = bound(0, s, 0.999);
r_refdef.fogmasktabledistmultiplier = FOGMASKTABLEWIDTH * r_refdef.fograngerecip;
// fog color was already set
// update the fog texture
- if (r_refdef.fogmasktable_start != r_refdef.fog_start || r_refdef.fogmasktable_alpha != r_refdef.fog_alpha)
+ if (r_refdef.fogmasktable_start != r_refdef.fog_start || r_refdef.fogmasktable_alpha != r_refdef.fog_alpha || r_refdef.fogmasktable_range != r_refdef.fogrange)
R_BuildFogTexture();
}
else