Class: EnvironmentMap

EnvironmentMap(reporter, settings)

Environment Map Can handle EXR => PMREM (Prefiltered, Mipmapped Radiance Environment Map )

Constructor

new EnvironmentMap(reporter, settings)

Parameters:
Name Type Description
reporter Reporter
settings Object
Properties
Name Type Attributes Description
id UUID <optional>
name string <optional>
Source:

Methods

(async, protected) _build(quality) → {Promise.<Component>}

Build map
Parameters:
Name Type Description
quality LoadingQuality
Source:
Returns:
Type
Promise.<Component>

(async) _buildEnvMapCube(cubeMap)

Parameters:
Name Type Description
cubeMap CubeTexture
Source:

(async) _buildEnvMapPNG(renderer, pngMap)

Parameters:
Name Type Description
renderer WebGLRenderer
pngMap WrappedImage
Source:

(async) _buildEXR(quality) → {Promise.<Component>}

Build Cube Texture
Parameters:
Name Type Description
quality LoadingQuality
Source:
Returns:
Type
Promise.<Component>

EnvironmentMap(reporter, settings)

new EnvironmentMap(reporter, settings)

Parameters:
Name Type Description
reporter Reporter
settings Object
Properties
Name Type Attributes Description
id UUID <optional>
renderer WebGLRenderer <optional>
exrMap WrappedEXR
pngMap WrappedImage <optional>
cubeMap CubeTexture <optional>
pmremGenerator PMREMGenerator <optional>
Source:

Methods

(async, protected) _build(quality) → {Promise.<Component>}

Build map
Parameters:
Name Type Description
quality LoadingQuality
Source:
Returns:
Type
Promise.<Component>

(async) _buildEnvMapCube(cubeMap)

Parameters:
Name Type Description
cubeMap CubeTexture
Source:

(async) _buildEnvMapPNG(renderer, pngMap)

Parameters:
Name Type Description
renderer WebGLRenderer
pngMap WrappedImage
Source:

(async) _buildEXR(quality) → {Promise.<Component>}

Build Cube Texture
Parameters:
Name Type Description
quality LoadingQuality
Source:
Returns:
Type
Promise.<Component>