Created
September 9, 2014 19:55
-
-
Save niquedegraaff/c16ca12398b37f61e887 to your computer and use it in GitHub Desktop.
Trainfever fog.fs shader (res/shaders/util/fog.fs)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 150 | |
uniform vec3 fogColor; | |
in float fogFactor; | |
vec3 applyFog(vec3 color) { | |
//return mix(1.5*vec3(.215, .225, .245), color, fogFactor); | |
vec3 newColor = vec3(0.4, 0.7, 1.0); | |
return mix(newColor, color, fogFactor * 1.3); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment