Skip to content

Commit 28c2332

Browse files
committed
Diorama example
1 parent fe334a0 commit 28c2332

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

examples/models/architecture/diorama.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@
1717
<script type="module">
1818
import * as THREE from "three";
1919
import { DioramaGeometry } from "../../../src/index.js";
20-
import { createOrbitScene } from "../../utils/orbitScene.js";
20+
import { createOrthographicScene } from "../../utils/orthographicScene.js";
2121

22-
const { scene, camera, controls } = createOrbitScene();
23-
camera.position.set(5, 5, 5);
24-
controls.target.set(0, 0, 0);
22+
const { scene, camera, controls } = createOrthographicScene();
2523

2624
const dioramaGeometry = new DioramaGeometry(5, 3, 5, 0.2);
2725
const material = new THREE.MeshStandardMaterial({ color: 0xaaaaaa, side: THREE.DoubleSide });

0 commit comments

Comments
 (0)