1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Make shading of CAOs optional (#10033)

This commit is contained in:
Danila Shutov 2020-06-16 22:48:31 +03:00 committed by GitHub
parent 0a1181f763
commit 3a6dfda358
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 47 additions and 7 deletions

View file

@ -341,7 +341,7 @@ bool checkMeshNormals(scene::IMesh *mesh)
// hurting the performance and covering only really weird broken models.
f32 length = buffer->getNormal(0).getLength();
if (!std::isfinite(length) || std::fabs(length) < 1e-10f)
if (!std::isfinite(length) || length < 1e-10f)
return false;
}