X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fscene_terrain.h;fp=shaders%2Fscene_terrain.h;h=6befad3a3b6426ccc517dfcbae74e30fe79145e0;hb=2673c575386c604fc2c0603dba2480eda05cf97a;hp=2027fd2a3dc102c082cbb8a2cb250a18036f3e16;hpb=66b3ec9c538fefd79c2de08e0dcdf070b4331885;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/scene_terrain.h b/shaders/scene_terrain.h index 2027fd2..6befad3 100644 --- a/shaders/scene_terrain.h +++ b/shaders/scene_terrain.h @@ -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"