Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

EnvironmentLight

Lucas edited this page Sep 16, 2019 · 2 revisions

Extends Light. This class provides lighting from an HDRI map.

Constructor

EnvironmentLight ( map: Texture, color: Integer, intensity: Float )

Properties

.map : Texture

The HDRI texture used to provide lighting. A compatible texture can be created with Three's RGBELoader. Otherwise, the texture can be created procedurally. In this case, the encoding property should be set to THREE.RGBEEncoding and the image property should be an ImageData object.