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
Merge remote-tracking branch 'origin/main' into feat/react19-event-bus
This commit is contained in:
@@ -765,6 +765,9 @@ export class RoomPlane implements IRoomPlane
|
|||||||
|
|
||||||
const layerHeight = Math.min(texture.height, canvasHeight);
|
const layerHeight = Math.min(texture.height, canvasHeight);
|
||||||
const layerPositionY = alignBottom ? (canvasHeight - layerHeight) : 0;
|
const layerPositionY = alignBottom ? (canvasHeight - layerHeight) : 0;
|
||||||
|
const verticalCropOffset = (alignBottom && texture.height > layerHeight)
|
||||||
|
? (texture.height - layerHeight)
|
||||||
|
: 0;
|
||||||
|
|
||||||
const layerSprite = new TilingSprite({
|
const layerSprite = new TilingSprite({
|
||||||
texture,
|
texture,
|
||||||
@@ -772,7 +775,7 @@ export class RoomPlane implements IRoomPlane
|
|||||||
height: layerHeight,
|
height: layerHeight,
|
||||||
tilePosition: {
|
tilePosition: {
|
||||||
x: this._landscapeOffsetX,
|
x: this._landscapeOffsetX,
|
||||||
y: this._landscapeOffsetY
|
y: this._landscapeOffsetY - verticalCropOffset
|
||||||
},
|
},
|
||||||
tint
|
tint
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user