medfall

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

commit 1584be57cede7fab581dd76e145ab6145a50416d
parent 520a6f72fd32b29a6ae9e1278737df20d6511bf7
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Thu Sep 15 10:34:57 +0100

Small clarity improvement

Diffstat:
terrain_manager.cc | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/terrain_manager.cc b/terrain_manager.cc @@ -20,7 +20,7 @@ static const GLchar * const vert_src = GLSL( in vec3 position; - out vec4 pos; + out vec4 vpos; out vec3 smooth_position; uniform mat4 v; @@ -29,12 +29,12 @@ static const GLchar * const vert_src = GLSL( void main() { gl_Position = vp * vec4( position, 1.0 ); smooth_position = position; - pos = v * vec4( position, 1.0 ); + vpos = v * vec4( position, 1.0 ); } ); static const GLchar * frag_src = GLSL( - in vec4 pos; + in vec4 vpos; in vec3 smooth_position; out vec4 colour; @@ -97,7 +97,7 @@ static const GLchar * frag_src = GLSL( // fog vec3 fog = vec3( 0.6, 0.6, 0.6 ); - float depth = length( pos ); + float depth = length( vpos ); float t = smoothstep( 700, 1250, depth ) * 0.6; colour = vec4( ( 1.0 - t ) * c + t * fog, 1.0 );