| 81119 | var idCount = 0; |
| 81120 | var DirectionalLight = function() { |
| 81121 | function DirectionalLight1() { |
| 81122 | var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 81123 | (0, _classCallCheckDefault.default)(this, DirectionalLight1); |
| 81124 | var _props$color = props.color, color = _props$color === void 0 ? DEFAULT_LIGHT_COLOR : _props$color; |
| 81125 | var _props$intensity = props.intensity, intensity = _props$intensity === void 0 ? DEFAULT_LIGHT_INTENSITY : _props$intensity; |
| 81126 | var _props$direction = props.direction, direction = _props$direction === void 0 ? DEFAULT_LIGHT_DIRECTION : _props$direction; |
| 81127 | var _props$_shadow = props._shadow, _shadow = _props$_shadow === void 0 ? false : _props$_shadow; |
| 81128 | this.id = props.id || "directional-".concat(idCount++); |
| 81129 | this.color = color; |
| 81130 | this.intensity = intensity; |
| 81131 | this.type = "directional"; |
| 81132 | this.direction = new (0, _mathGl.Vector3)(direction).normalize().toArray(); |
| 81133 | this.shadow = _shadow; |
| 81134 | } |
| 81135 | (0, _createClassDefault.default)(DirectionalLight1, [ |
| 81136 | { |
| 81137 | key: "getProjectedLight", |