We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db96d89 commit bd351d7Copy full SHA for bd351d7
client/shaders/surface-extraction/extract.comp
@@ -76,6 +76,9 @@ bool find_face(out Face info) {
76
// Flip face around if the neighbor is the solid one
77
info.inward = self_mat == 0;
78
info.material = self_mat | neighbor_mat;
79
+ // If self or neighbor is a non-void margin, then no surface should be generated, as any surface
80
+ // that would be rendered is the responsibility of the adjacent chunk.
81
+ if ((self_mat != 0 && info.voxel[info.axis] == dimension) || (neighbor_mat != 0 && neighbor[info.axis] == -1)) return false;
82
return (neighbor_mat == 0) != (self_mat == 0);
83
}
84
0 commit comments