Skip to content

Commit

Permalink
Fix region borders on background mode NONE
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtarsia authored and TokisanGames committed Sep 14, 2024
1 parent e1c282d commit 896d39d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shaders/main.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 896d39d

Please sign in to comment.