fix backface meshext

This commit is contained in:
mcrcortex
2025-07-14 19:44:41 +10:00
parent 97058f24b4
commit 653dbc8a3a

View File

@@ -277,7 +277,7 @@ void main() {
uint qid = getQuadId() + task.baseQuad;
quad = quadData[qid];
setup(quad);
bool render = dot(faceNormal(face), cornerPos) <= 0;
bool render = dot(faceNormal(face), cornerPos-cameraSubPos) <= 0;
qid = render?qid:uint(-1);
}