API Reference › Globals › MockEnvironmentLoader
# Class: MockEnvironmentLoader
# Hierarchy
-
↳ MockEnvironmentLoader
# Implements
# Index
# Constructors
# Properties
# Methods
- getEnvironmentMap
- onEnvMapUpdate
- registerEnvironmentChangedCallback
- setEnvMap
- setRendererAndScene
- setEnvironmentMap
# Constructors
# constructor
+ new MockEnvironmentLoader(creator
: string): MockEnvironmentLoader
Inherited from EnvironmentLoader.constructor
Defined in packages/common-core/src/services/environment-loader.ts:33
Parameters:
Name | Type |
---|---|
creator | string |
Returns: MockEnvironmentLoader
# Properties
# creator
• creator: string
_Implementation of Context.creator_
_Inherited from EnvironmentLoader.creator_
Defined in packages/common-core/src/services/environment-loader.ts:11
# Methods
# getEnvironmentMap
▸ getEnvironmentMap(): Texture
Overrides EnvironmentLoader.getEnvironmentMap
Defined in packages/common-core/mock/mock-environment-loader.ts:4
Returns: Texture
# onEnvMapUpdate
▸ onEnvMapUpdate(fun
: function): void
Inherited from EnvironmentLoader.onEnvMapUpdate
Defined in packages/common-core/src/services/environment-loader.ts:107
Every function added here gets only called once
Parameters:
▪ fun: function
▸ (): void
Returns: void
# registerEnvironmentChangedCallback
▸ registerEnvironmentChangedCallback(callBack
: any): void
Inherited from EnvironmentLoader.registerEnvironmentChangedCallback
Defined in packages/common-core/src/services/environment-loader.ts:85
Parameters:
Name | Type |
---|---|
callBack | any |
Returns: void
# setEnvMap
▸ setEnvMap(material
: MeshStandardMaterial): void
Inherited from EnvironmentLoader.setEnvMap
Defined in packages/common-core/src/services/environment-loader.ts:111
Parameters:
Name | Type |
---|---|
material | MeshStandardMaterial |
Returns: void
# setRendererAndScene
▸ setRendererAndScene(renderer
: WebGLRenderer, scene
: Scene): void
Inherited from EnvironmentLoader.setRendererAndScene
Defined in packages/common-core/src/services/environment-loader.ts:80
Parameters:
Name | Type |
---|---|
renderer | WebGLRenderer |
scene | Scene |
Returns: void
# Static
setEnvironmentMap
▸ setEnvironmentMap(material
: MeshStandardMaterial, envMap
: Texture): void
Inherited from EnvironmentLoader.setEnvironmentMap
Defined in packages/common-core/src/services/environment-loader.ts:26
Parameters:
Name | Type |
---|---|
material | MeshStandardMaterial |
envMap | Texture |
Returns: void