X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fcommon_world.glsl;fp=shaders%2Fcommon_world.glsl;h=5e1a8919070e9f1865a1250c745f98f329222ed1;hb=6d66c67945f84476d6ac75a0497007cc30bcf58c;hp=4d9b0d3d6a7211f6cdb38499338264ab252ffc84;hpb=d8b8c566831e15ef061a66409e1219f44a82097a;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/common_world.glsl b/shaders/common_world.glsl index 4d9b0d3..5e1a891 100644 --- a/shaders/common_world.glsl +++ b/shaders/common_world.glsl @@ -50,7 +50,7 @@ float world_depth_sample( vec3 pos ) float shadow_sample( vec3 vdir ) { - vec3 sample_pos = aCo + vdir; + vec3 sample_pos = aWorldCo + vdir; float height_sample = world_depth_sample( sample_pos ); float fdelta = height_sample - sample_pos.y;