medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 90145b4ac5063d7d4013fe94fffa764ae8cfe35e
parent 010c224ba3a8b297ff5660452e0ae51c0b1b061d
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Tue Sep  6 21:42:31 -0700

Smoother fog transition

Diffstat:
terrain_manager.cc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/terrain_manager.cc b/terrain_manager.cc @@ -71,7 +71,7 @@ static const GLchar * frag_src = GLSL( vec3 fog = vec3( 0.6, 0.6, 0.6 ); float depth = length( pos ); - float t = smoothstep( 900, 1200, depth ) * 0.6; + float t = smoothstep( 700, 1250, depth ) * 0.6; colour = vec4( ( 1.0 - t ) * ground * light + t * fog, 1.0 ); // colour *= 0;