fixe
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / scene_terrain.h
index 2027fd2a3dc102c082cbb8a2cb250a18036f3e16..6befad3a3b6426ccc517dfcbae74e30fe79145e0 100644 (file)
@@ -209,7 +209,7 @@ static struct vg_shader _shader_scene_terrain = {
 "{\n"
 "   vec2 depth_coord = (pos.xz - g_depth_bounds.xy) * g_depth_bounds.zw; \n"
 "   float ref_depth = g_water_plane.y*g_water_plane.w;\n"
-"   return texture( g_world_depth, depth_coord ).g - ref_depth;\n"
+"   return texture( g_world_depth, depth_coord ).g-ref_depth;\n"
 "}\n"
 "\n"
 "float shadow_sample( vec3 vdir )\n"