"use strict";

exports.__esModule = true;
exports["default"] = void 0;
var THREE = _interopRequireWildcard(require("three"));
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
/**
 * Copyright (c) 2023 Kernelsoft All rights reserved.
 * @description: 场景灯光组
 * @author: luoyi@kernelsoft.com
 * @date: 2023-06-05
 */

var LIGHT_POSITIONS = [[-10, 20, 0], [10, 20, 0], [0, -20, 0]];
var LightGroup = exports["default"] = /*#__PURE__*/function () {
  function LightGroup() {
    var _this = this;
    this.lightGroup = void 0;
    this.lightGroup = new THREE.Group();
    LIGHT_POSITIONS.forEach(function (item) {
      var planeLight = new THREE.RectAreaLight();
      planeLight.intensity = 20;
      planeLight.position.set(item[0], item[1], item[2]);
      planeLight.lookAt(0, 0, 0);
      _this.lightGroup.add(planeLight);
    });
  }
  var _proto = LightGroup.prototype;
  _proto.getLightGroup = function getLightGroup() {
    return this.lightGroup;
  };
  return LightGroup;
}();