diff --git a/src/shaders/main.glsl b/src/shaders/main.glsl index 8e102bd8..7cb72ebb 100644 --- a/src/shaders/main.glsl +++ b/src/shaders/main.glsl @@ -139,7 +139,7 @@ void vertex() { // Show holes to all cameras except mouse camera (on exactly 1 layer) if ( !(CAMERA_VISIBLE_LAYERS == _mouse_layer) && - (hole || (_background_mode == 0u && v_region.z < 0)) ) { + (hole || (_background_mode == 0u && (get_region_uv(UV - _region_texel_size) & v_region).z < 0))) { VERTEX.x = 0. / 0.; } else { // Set final vertex height & calculate vertex normals. 3 lookups.