API ReferenceGlobalsGltfEnvironment

# Class: GltfEnvironment

# Hierarchy

# Index

# Constructors

# Methods

# Constructors

# constructor

+ new GltfEnvironment(scene: Scene, oldEnvironment?: Environment): GltfEnvironment

Overrides Environment.constructor

Defined in packages/configurator-core/src/webgl/environment/gltf-environment.ts:16

Parameters:

Name Type
scene Scene
oldEnvironment? Environment

Returns: GltfEnvironment

# Methods

# addToScene

addToScene(): void

Overrides Environment.addToScene

Defined in packages/configurator-core/src/webgl/environment/gltf-environment.ts:64

Returns: void


# cleanUp

cleanUp(): void

Inherited from Environment.cleanUp

Defined in packages/common-core/src/environment/environment.ts:37

Returns: void


# loadBackground

loadBackground(url: string, material?: Material): void

Defined in packages/configurator-core/src/webgl/environment/gltf-environment.ts:78

Parameters:

Name Type
url string
material? Material

Returns: void


# needsBounds

needsBounds(): boolean

Overrides Environment.needsBounds

Defined in packages/configurator-core/src/webgl/environment/gltf-environment.ts:26

Returns: boolean


# needsCamera

needsCamera(): boolean

Overrides Environment.needsCamera

Defined in packages/configurator-core/src/webgl/environment/gltf-environment.ts:30

Returns: boolean


# reload

reload(): void

Inherited from Environment.reload

Defined in packages/common-core/src/environment/environment.ts:28

Returns: void


# removeFromScene

removeFromScene(): void

Overrides Environment.removeFromScene

Defined in packages/configurator-core/src/webgl/environment/gltf-environment.ts:71

Returns: void


# showGUI

showGUI(): void

Overrides Environment.showGUI

Defined in packages/configurator-core/src/webgl/environment/gltf-environment.ts:118

Returns: void


# updateBounds

updateBounds(bounds: Vector3): void

Overrides Environment.updateBounds

Defined in packages/configurator-core/src/webgl/environment/gltf-environment.ts:34

Parameters:

Name Type
bounds Vector3

Returns: void


# updateCamera

updateCamera(camera: PerspectiveCamera): void

Overrides Environment.updateCamera

Defined in packages/configurator-core/src/webgl/environment/gltf-environment.ts:45

Parameters:

Name Type
camera PerspectiveCamera

Returns: void