You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 15:06:20 +00:00
🆙 Small fix landscape's where a bit offset
This commit is contained in:
@@ -765,6 +765,9 @@ export class RoomPlane implements IRoomPlane
|
||||
|
||||
const layerHeight = Math.min(texture.height, canvasHeight);
|
||||
const layerPositionY = alignBottom ? (canvasHeight - layerHeight) : 0;
|
||||
const verticalCropOffset = (alignBottom && texture.height > layerHeight)
|
||||
? (texture.height - layerHeight)
|
||||
: 0;
|
||||
|
||||
const layerSprite = new TilingSprite({
|
||||
texture,
|
||||
@@ -772,7 +775,7 @@ export class RoomPlane implements IRoomPlane
|
||||
height: layerHeight,
|
||||
tilePosition: {
|
||||
x: this._landscapeOffsetX,
|
||||
y: this._landscapeOffsetY
|
||||
y: this._landscapeOffsetY - verticalCropOffset
|
||||
},
|
||||
tint
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user