lingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
23 lines • 829 B
JavaScript
import { PointLight as ThreePointLight } from "three";
import { pointLightDefaults, pointLightSchema } from "../../interface/IPointLight";
import PointLightBase from "../core/PointLightBase";
import { pointLightShadowResolutionSystem } from "../../systems/pointLightShadowResolutionSystem";
class PointLight extends PointLightBase {
static componentName = "pointLight";
static defaults = pointLightDefaults;
static schema = pointLightSchema;
constructor() {
super(new ThreePointLight());
}
get shadows() {
return super.shadows;
}
set shadows(val) {
super.shadows = val;
val
? pointLightShadowResolutionSystem.add(this)
: pointLightShadowResolutionSystem.delete(this);
}
}
export default PointLight;
//# sourceMappingURL=PointLight.js.map