@openhps/core
Version:
Open Hybrid Positioning System - Core component
31 lines (29 loc) • 795 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.DirectionalLightShadow = void 0;
var _LightShadow = require("./LightShadow.js");
var _OrthographicCamera = require("../cameras/OrthographicCamera.js");
/**
* Represents the shadow configuration of directional lights.
*
* @augments LightShadow
*/
class DirectionalLightShadow extends _LightShadow.LightShadow {
/**
* Constructs a new directional light shadow.
*/
constructor() {
super(new _OrthographicCamera.OrthographicCamera(-5, 5, 5, -5, 0.5, 500));
/**
* This flag can be used for type testing.
*
* @type {boolean}
* @readonly
* @default true
*/
this.isDirectionalLightShadow = true;
}
}
exports.DirectionalLightShadow = DirectionalLightShadow;