color.rgba = fadecolor; alpha = (realcolor.s.alpha*255)/25; fogalpha = (fogcolor.s.alpha*255)/25; if (cv_grfog.value && cv_grsoftwarefog.value) // Only do this when fog is on, software fog mode is on, and the poly is not from a fog block { // Modulate the...