The Project Module.
- Source:
Members
(private, static) context
The Context constant provides a neutral scope to use as part of the state handling tasks.
- Source:
Methods
(async, static) loadGltfScene() → {ret}
The GLTF file holds props and animations for one or more scenes. We wait for a promise of the gltf to apply the mixer.
- Source:
Returns:
Items created in the promise response.
- Type
- ret
(static) setCamera() → {THREE.Camera}
The camera is created from standarized defaults, See module:Context.
- Source:
Returns:
camera
- Type
- THREE.Camera
(async, static) setControls() → {OrbitControls}
The Orbit Control system is used and instantiated from default values, See module:Context.
- Source:
Returns:
controls
- Type
- OrbitControls
(async, static) setRenderer() → {THREE.Renderer}
The Rederer is built from default values, See module:Context.
- Source:
Returns:
renderer
- Type
- THREE.Renderer
(static) setStage() → {THREE.Scene}
The Stage set function prepares the three js environment that will run the scenes.
- Source:
Returns:
scene
- Type
- THREE.Scene
Type Definitions
ret
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
gltf |
THREE.gltf | The loaded instance of a gltf file. |
mixer |
THREE.AnimationMixer | The animation clip mixer. |
loader |
THREE.GLTFLoader | Instance that can load additional gltf files. |
- Source: