commit 97fa632a1b9385dfebd8ea69106f125b416466a6 parent 5ac5e19de4113b7c246c57a04d0b6688aedff769 Author: Michael Savage <mikejsavage@gmail.com> Date: Sun Nov 27 09:17:49 +0200 Less fog, make the water blue Diffstat:
terrain_manager.cc | | | 5 | ++++- |
diff --git a/terrain_manager.cc b/terrain_manager.cc @@ -65,6 +65,9 @@ static const char * frag_src = GLSL( ground = vec3( 0.6, 0.6, 0.6 ); } } + else if( smooth_position.z < 5 ) { + ground = vec3( 0.0, 0.25, 1.0 ); + } else { if( normal.z > 0.8 ) { ground = vec3( 0.4, 1.0, 0.4 ); @@ -99,7 +102,7 @@ static const char * frag_src = GLSL( vec3 fog = vec3( 0.6, 0.6, 0.6 ); float depth = length( vpos ); - float t = smoothstep( 700, 1250, depth ) * 0.6; + float t = smoothstep( 1250, 2000, depth ) * 0.2; colour = vec4( mix( c, fog, t ), 1.0 ); }