-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain-scene.js
53 lines (45 loc) · 2.1 KB
/
main-scene.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import {defs} from './examples/common.js';
// Now everything is loaded from tiny-graphics.js and its helper files. An object "tiny" wraps its contents, along
// with "defs" for wrapping some additional utilities included in common.js.
// ******************** Before selecting which demo we want to display, we have to load its code. If this page is hosted
// on the internet, the demo's class can be injected right here by the server.
//
// In this case, it's not, so you'll instead Load demos from files in your directory and copy them into "defs."
const Minimal_Webgl_Demo = defs.Minimal_Webgl_Demo;
import {Axes_Viewer, Axes_Viewer_Test_Scene, Matrix_Game}
from "./examples/axes-viewer.js";
import {Demonstration}
from "./examples/demonstration.js";
import {Inertia_Demo, Collision_Demo}
from "./examples/collisions-demo.js";
import {Many_Lights_Demo}
from "./examples/many-lights-demo.js";
import {Obj_File_Demo}
from "./examples/obj-file-demo.js";
import {Parametric_Surfaces}
from "./examples/parametric-surfaces.js";
import {Scene_To_Texture_Demo}
from "./examples/scene-to-texture-demo.js";
import {Text_Demo}
from "./examples/text-demo.js";
import {Transforms_Sandbox_Base, Transforms_Sandbox}
from "./examples/transforms-sandbox.js";
import {Insurmountable}
from "./insurmountable.js";
Object.assign (defs,
{Minimal_Webgl_Demo},
{Axes_Viewer, Axes_Viewer_Test_Scene, Matrix_Game},
{Demonstration},
{Inertia_Demo, Collision_Demo},
{Many_Lights_Demo},
{Obj_File_Demo},
{Parametric_Surfaces},
{Scene_To_Texture_Demo},
{Text_Demo},
{Transforms_Sandbox_Base, Transforms_Sandbox},
{Insurmountable}
);
// ******************** SELECT THE DEMO TO DISPLAY:
const main_scene = Insurmountable;
const additional_scenes = [];
export {main_scene, additional_scenes, defs};