X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fscene_water_fast.h;h=b4510c7e31292b0dcaf62556bd1b64c3bdb05778;hb=4b8aac300ee193cfa12011dfe0238cfe7d7ffce7;hp=b02f8ca5b33cbd6551a05148c20ac4bc5a004bfc;hpb=a1056ed8198f0f5be0e0f341da8bd49aa6c47198;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/scene_water_fast.h b/shaders/scene_water_fast.h index b02f8ca..b4510c7 100644 --- a/shaders/scene_water_fast.h +++ b/shaders/scene_water_fast.h @@ -210,9 +210,8 @@ static struct vg_shader _shader_scene_water_fast = { "\n" "float world_water_depth( vec3 pos )\n" "{\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 world_depth_sample( pos ) - ref_depth;\n" "}\n" "\n" "float shadow_sample( vec3 vdir )\n"