a lot
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / common_world.glsl
index 4d9b0d3d6a7211f6cdb38499338264ab252ffc84..5e1a8919070e9f1865a1250c745f98f329222ed1 100644 (file)
@@ -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;