Fix tree mesh face orientation.

This commit is contained in:
Relintai 2024-09-08 16:12:16 +02:00
parent ad642e3f16
commit 4f62ea4b8e

View File

@ -291,8 +291,8 @@ void ProceduralTreeMesh::_update() const {
int ind = i * 3;
iw[ind] = tface.x;
iw[ind + 1] = tface.y;
iw[ind] = tface.y;
iw[ind + 1] = tface.x;
iw[ind + 2] = tface.z;
}
}
@ -363,8 +363,8 @@ void ProceduralTreeMesh::_update() const {
int ind = i * 3;
iw[ind] = tface.x;
iw[ind + 1] = tface.y;
iw[ind] = tface.y;
iw[ind + 1] = tface.x;
iw[ind + 2] = tface.z;
}
}