fix: restore room-background Z transparency after branding offsetZ change

FurnitureBrandedImageVisualization now adds offsetZ to the branded layer (z-index for the MPU/billboard editor). The room background uses offsetZ as an inverse depth push (the 'play with Z to hide floor/walls' trick); its getLayerZOffset subtracted offsetZ assuming the parent did not add it, so the two cancelled out and the effect was lost. Cancel the parent's +offsetZ for the branded layer to restore the original net (base - offsetZ).
This commit is contained in:
medievalshell
2026-05-29 00:45:05 +02:00
parent 9c7c9ccdbf
commit b127501c52
@@ -76,6 +76,12 @@ export class FurnitureRoomBackgroundVisualization extends FurnitureBrandedImageV
if(this.getLayerTag(scale, direction, layerId) === FurnitureBrandedImageVisualization.BRANDED_IMAGE) if(this.getLayerTag(scale, direction, layerId) === FurnitureBrandedImageVisualization.BRANDED_IMAGE)
{ {
// The parent (FurnitureBrandedImageVisualization) now ADDS offsetZ to the
// branded layer as a z-index (for the MPU/billboard editor). The room
// background instead uses offsetZ as an INVERSE depth push — the classic
// "play with Z to make the floor/walls go transparent" trick — so cancel
// the parent's +offsetZ to restore the original net (base - offsetZ).
zOffset += (-(this._offsetZ));
zOffset += FurnitureRoomBackgroundVisualization.BRANDED_IMAGE_LAYER_DEPTH_BIAS; zOffset += FurnitureRoomBackgroundVisualization.BRANDED_IMAGE_LAYER_DEPTH_BIAS;
} }