UFO: Alien Invasion
Loading...
Searching...
No Matches
fog_fs.glsl
Go to the documentation of this file.
1/**
2 * @file
3 * @brief Fog fragment shader.
4 */
5
6#if r_fog
7in_qualifier float fog;
8uniform vec3 FOGCOLOR;
9
10/**
11 * @brief FogFragment.
12 */
13vec4 FogFragment(vec4 inColor) {
14 return vec4(mix(inColor.rgb, FOGCOLOR, fog), inColor.a);
15}
16#endif