SceneModule

WHS.app.SceneModule

const app = new WHS.App([
  new WHS.app.SceneModule()
]);

constructor(willSceneBeReplaced = false)

📘

willSceneBeReplaced

willSceneBeReplaced should be true only if you are going to overwrite scene dependency even without the use of default one.

Exported dependencies

Name

Value

Alias

scene

THREE.Scene instance

app.$scene

Integrated functionality

Method name

Description

app.add(object)

Function to add component's native objects (THREE.Object3D) to scene