Skip to content

Instantly share code, notes, and snippets.

@niquedegraaff
Created September 9, 2014 19:55
Show Gist options
  • Save niquedegraaff/c16ca12398b37f61e887 to your computer and use it in GitHub Desktop.
Save niquedegraaff/c16ca12398b37f61e887 to your computer and use it in GitHub Desktop.
Trainfever fog.fs shader (res/shaders/util/fog.fs)
#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