Update the nominal face after the cull face, since
updating the cull face will also force the nominal face to the cull face.
This commit is contained in:
@@ -97,12 +97,14 @@ public class QuadRotator implements RenderContext.QuadTransform {
|
|||||||
MutableQuadViewImpl quadImpl = (MutableQuadViewImpl) quad;
|
MutableQuadViewImpl quadImpl = (MutableQuadViewImpl) quad;
|
||||||
quadImpl.lightFace(rotation.rotate(quad.lightFace()));
|
quadImpl.lightFace(rotation.rotate(quad.lightFace()));
|
||||||
|
|
||||||
// Transform the nominal face
|
// Transform the nominal face, setting the cull face will also overwrite the nominialFace,
|
||||||
quad.nominalFace(rotation.rotate(quad.nominalFace()));
|
// hence saving both first and the order here.
|
||||||
|
Direction nominalFace = quad.nominalFace();
|
||||||
Direction cullFace = quad.cullFace();
|
Direction cullFace = quad.cullFace();
|
||||||
if (cullFace != null) {
|
if (cullFace != null) {
|
||||||
quad.cullFace(rotation.rotate(cullFace));
|
quad.cullFace(rotation.rotate(cullFace));
|
||||||
}
|
}
|
||||||
|
quad.nominalFace(rotation.rotate(nominalFace));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user