API Reference › Globals › EnvironmentLoader
# Class: EnvironmentLoader
# Hierarchy
EnvironmentLoader
# Implements
# Index
# Constructors
# Properties
# Methods
- getEnvironmentMap
- onEnvMapUpdate
- registerEnvironmentChangedCallback
- setEnvMap
- setRendererAndScene
- setEnvironmentMap
# Constructors
# constructor
+ new EnvironmentLoader(creator
: string): EnvironmentLoader
Defined in packages/common-core/src/services/environment-loader.ts:33
Parameters:
Name | Type |
---|---|
creator | string |
Returns: EnvironmentLoader
# Properties
# creator
• creator: string
_Implementation of Context.creator_
Defined in packages/common-core/src/services/environment-loader.ts:11
# Methods
# getEnvironmentMap
▸ getEnvironmentMap(): Texture
Defined in packages/common-core/src/services/environment-loader.ts:43
Returns: Texture
# onEnvMapUpdate
▸ onEnvMapUpdate(fun
: function): void
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
Defined in packages/common-core/src/services/environment-loader.ts:85
Parameters:
Name | Type |
---|---|
callBack | any |
Returns: void
# setEnvMap
▸ setEnvMap(material
: MeshStandardMaterial): void
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
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
Defined in packages/common-core/src/services/environment-loader.ts:26
Parameters:
Name | Type |
---|---|
material | MeshStandardMaterial |
envMap | Texture |
Returns: void