Skip to content

Commit 4197483

Browse files
committed
fix main-f
1 parent 8e10291 commit 4197483

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

code/def_files/data/effects/main-f.sdr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ void main()
392392
#prereplace ENDIF_FLAG //MODEL_SDR_FLAG_DIFFUSE
393393
// This code will only be used by the forward renderer so we apply the fog effect to both the emissive and the base
394394
// color.
395-
float fogDensityFinal = clamp(1 - pow(fogDensity, vertIn.fogDist) , 0.0, 1.0);
395+
float fogDensityFinal = clamp(1.0 - pow(fogDensity, vertIn.fogDist) , 0.0, 1.0);
396396
baseColor.rgb = mix(emissiveColor.rgb + baseColor.rgb, finalFogColor, fogDensityFinal);
397397
emissiveColor.rgb = vec3(0.0); // Zero the emissive color since it has already been added by the previous line
398398
specColor.rgb *= fogDensityFinal;

0 commit comments

Comments
 (0)