We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6ba498 commit 7738b0fCopy full SHA for 7738b0f
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 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