Skip to content

Commit abce0af

Browse files
georginahalpernGeorgina Halpern
andauthored
Enable per-scene FloatingOrigin in utility layer renderer (#17344)
This fixes bug where UtilityLayer scene was only respecting engine's useLargeWorldRendering, not the original scene's useFloatingOrigin setting --------- Co-authored-by: Georgina Halpern <[email protected]>
1 parent f338005 commit abce0af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/dev/core/src/Rendering/utilityLayerRenderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export class UtilityLayerRenderer implements IDisposable {
161161
manualRender = false
162162
) {
163163
// Create scene which will be rendered in the foreground and remove it from being referenced by engine to avoid interfering with existing app
164-
this.utilityLayerScene = new Scene(originalScene.getEngine(), { virtual: true });
164+
this.utilityLayerScene = new Scene(originalScene.getEngine(), { virtual: true, useFloatingOrigin: originalScene.floatingOriginMode });
165165
this.utilityLayerScene.useRightHandedSystem = originalScene.useRightHandedSystem;
166166
this.utilityLayerScene._allowPostProcessClearColor = false;
167167

0 commit comments

Comments
 (0)