We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e29c80c commit 349d0c6Copy full SHA for 349d0c6
examples/models/books/book.html
@@ -17,13 +17,14 @@
17
<body>
18
<script type="module">
19
import GUI from "lil-gui";
20
- import { Book } from "../../../src/index.js";
+ import { Book, centerMesh } from "../../../src/index.js";
21
import { createOrbitScene } from "../../utils/orbitScene.js";
22
23
const { scene } = createOrbitScene();
24
25
let book = new Book();
26
scene.add(book);
27
+ centerMesh(book);
28
29
// Create the lil-gui panel
30
const gui = new GUI();
@@ -57,6 +58,7 @@
57
58
coverColor: params.coverColor,
59
pageColor: params.pageColor,
60
});
61
62
63
}
64
</script>
0 commit comments