Fix precision issue which can cause visual artifacts in lowres

This commit is contained in:
Lukas Rieger (Blue) 2023-03-07 16:42:07 +01:00
parent 4e970621ae
commit ec5ca244fd
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2

View File

@ -326,7 +326,7 @@ private void createElementFace(Element element, Direction faceDir, VectorM3f c0,
makeRotationRelative(faceRotationVector); makeRotationRelative(faceRotationVector);
float a = faceRotationVector.y; float a = faceRotationVector.y;
if (a > 0 && texturePath != null){ if (a > 0.01 && texturePath != null) {
Texture texture = texturePath.getResource(resourcePack::getTexture); Texture texture = texturePath.getResource(resourcePack::getTexture);
if (texture != null) { if (texture != null) {
mapColor.set(texture.getColorPremultiplied()); mapColor.set(texture.getColorPremultiplied());