Import
SunLight is an addon, and must be imported explicitly, see Installation#Addons.
import { SunLight } from 'three/addons/lights/SunLight.js';
Constructor
new SunLight( color : number | Color | string, intensity : number )
Constructs a new sun light.
| color |
The light's color. Default is |
| intensity |
The light's strength/intensity. Default is |
Properties
.isSunLight : boolean (readonly)
This flag can be used for type testing.
Default is true.
.shadow : SunLightShadow
This property holds the light's shadow configuration.