Also apply variant-rotation to the color-calculation. Fixes: #354

This commit is contained in:
Lukas Rieger (Blue) 2022-11-01 14:19:04 +01:00
parent 6c18fde7b0
commit 6213137894
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2

View File

@ -321,6 +321,7 @@ private void createElementFace(Element element, Direction faceDir, VectorM3f c0,
); );
makeRotationRelative(faceRotationVector); makeRotationRelative(faceRotationVector);
faceRotationVector.rotateAndScale(element.getRotation().getMatrix()); faceRotationVector.rotateAndScale(element.getRotation().getMatrix());
if (variant.isRotated()) faceRotationVector.transform(variant.getRotationMatrix());
float a = faceRotationVector.y; float a = faceRotationVector.y;
if (a > 0 && texturePath != null){ if (a > 0 && texturePath != null){