summaryrefslogtreecommitdiff
path: root/shaders
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-04-10 14:51:47 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2011-04-10 14:51:47 +0200
commite0c0a9f3816facd0fc4066a50479f823447e03f6 (patch)
tree0dae6e6e1472256c7c4287d34fbd0ea5cb42edbb /shaders
parent70d2e2f6af64b43067d4a8421592b14d1258069b (diff)
Simple raise/lower implementation.
Diffstat (limited to 'shaders')
-rw-r--r--shaders/terrain_fragment.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/shaders/terrain_fragment.glsl b/shaders/terrain_fragment.glsl
index 78417af..2d02dc8 100644
--- a/shaders/terrain_fragment.glsl
+++ b/shaders/terrain_fragment.glsl
@@ -7,7 +7,7 @@ uniform sampler2D tex[3];
void main() {
vec3 n = normalize(normal);
- float diffuse = max(dot(n, light_pos), 0.0);
+ float diffuse = max(dot(n, light_pos), 0.5);
float f1 = clamp((y-15.0) / 3.0, 0.0, 1.0);
float f2 = clamp((y-2) / 3.0, 0.0, 1.0);