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
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:
+6
@@ -76,6 +76,12 @@ export class FurnitureRoomBackgroundVisualization extends FurnitureBrandedImageV
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user