mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-23 04:57:58 +01:00
Fixed plane renderer not accounting for scaling on the z axes
This commit is contained in:
parent
0ca03dbfa6
commit
da26aef533
1 changed files with 2 additions and 2 deletions
|
@ -60,10 +60,10 @@ public class PlaneRenderer extends AbstractPonyRenderer<PlaneRenderer> {
|
|||
}
|
||||
|
||||
public PlaneRenderer addFrontPlane(float offX, float offY, float offZ, int width, int height, float scale) {
|
||||
return addPlane(offX, offY, offZ, width, height, 0, scale, Face.NORTH);
|
||||
return addPlane(offX, offY, offZ - scale * 2, width, height, 0, scale, Face.NORTH);
|
||||
}
|
||||
|
||||
public PlaneRenderer addBackPlane(float offX, float offY, float offZ, int width, int height, float scale) {
|
||||
return addPlane(offX, offY, offZ, width, height, 0, scale, Face.SOUTH);
|
||||
return addPlane(offX, offY, offZ + scale * 2, width, height, 0, scale, Face.SOUTH);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue