HemisphereLight constructor
HemisphereLight(
- dynamic skyColor,
- dynamic groundColor, [
- double intensity = 1.0
Implementation
HemisphereLight(skyColor, groundColor, [double intensity = 1.0]) : super(skyColor, intensity) {
type = 'HemisphereLight';
position.copy(Object3D.defaultUp);
isHemisphereLight = true;
updateMatrix();
if (groundColor is Color) {
this.groundColor = groundColor;
} else if (groundColor is int) {
this.groundColor = Color.fromHex(groundColor);
} else {
throw ("HemisphereLight init groundColor type is not support $groundColor ");
}
}