Skip to content

Commit

Permalink
Skip frustum clipping (#15740)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantrem authored Oct 25, 2024
1 parent 4d1e2ef commit 650c1f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>Babylon Viewer Demo</title>
<meta charset="UTF-8" />
<script type="module" src="https://unpkg.com/@babylonjs/viewer@preview/dist/babylon-viewer.esm.min.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@babylonjs/viewer@preview/dist/babylon-viewer.esm.min.js"></script>
<style>
html,
body {
Expand Down
2 changes: 2 additions & 0 deletions packages/tools/viewer-alpha/src/viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ export class Viewer implements IDisposable {
scene: new Scene(this._engine),
model: null,
};
this._details.scene.skipFrustumClipping = true;
this._details.scene.skipPointerMovePicking = true;
this._details.scene.clearColor = finalOptions.backgroundColor;
this._snapshotHelper = new SnapshotRenderingHelper(this._details.scene, { morphTargetsNumMaxInfluences: 30 });
this._camera = new ArcRotateCamera("camera1", 0, 0, 1, Vector3.Zero(), this._details.scene);
Expand Down

0 comments on commit 650c1f7

Please sign in to comment.