@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
40 lines (31 loc) • 780 B
JavaScript
import { Color } from "../../../../../core/color/Color.js";
import Vector1 from "../../../../../core/geom/Vector1.js";
import Vector3 from "../../../../../core/geom/Vector3.js";
import { AbstractLight } from "./AbstractLight.js";
export class DirectionalLight extends AbstractLight {
/**
* @readonly
* @type {Vector3}
*/
position = new Vector3();
/**
* @readonly
* @type {Vector3}
*/
direction = new Vector3(0,-1,0);
/**
* @readonly
* @type {Color}
*/
color = new Color(1, 1, 1);
/**
* @readonly
* @type {Vector1}
*/
intensity = new Vector1(1);
}
/**
* @readonly
* @type {boolean}
*/
DirectionalLight.prototype.isDirectionalLight = true;