diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-05-29 17:31:35 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-05-29 17:31:35 +0200 |
commit | e39d44e9dc47bb3f8a77955768e3599ec0ed30be (patch) | |
tree | e0cf22162b29d54503c2488b1d3cea0de636284a /shaders | |
parent | 95314b6167d3ec8b15e028b62f6b4531f132b6e0 (diff) |
Some code cleanup in scene.cpp.
Diffstat (limited to 'shaders')
-rw-r--r-- | shaders/water_fragment.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shaders/water_fragment.glsl b/shaders/water_fragment.glsl index 150f071..7e877e9 100644 --- a/shaders/water_fragment.glsl +++ b/shaders/water_fragment.glsl @@ -6,7 +6,7 @@ uniform sampler2D tex; uniform float t; void main() { - gl_FragColor = texture2D(tex, gl_TexCoord[0].st + vec2(t, t)) - vec4(.2, .2, 0, 0); + gl_FragColor = texture2D(tex, gl_TexCoord[0].st + vec2(t)) - vec4(.2, .2, 0, 0); gl_FragColor = mix(gl_FragColor, gl_Fog.color, pow(length(player_pos - pos)/100, 5)); gl_FragColor.a = 0.7; } |