HemisphereLight constructor
skyColor
- (optional) hexadecimal color of the sky. Default
is 0xffffff.
groundColor
- (optional) hexadecimal color of the ground.
Default is 0xffffff.
intensity
- (optional) numeric value of the light's
strength/intensity. Default is 1
.
Implementation
HemisphereLight(int? skyColor, int? groundColor, [double intensity = 1.0]):super(skyColor, intensity) {
type = 'HemisphereLight';
position.setFrom(Object3D.defaultUp);
isHemisphereLight = true;
updateMatrix();
if (groundColor != null) {
this.groundColor = Color.fromHex32(groundColor);
}
}