web3d / node_modules /three /src /lights /DirectionalLight.d.ts
julien-c's picture
julien-c HF staff
do not gitignore the builds
6cd9596
raw
history blame contribute delete
945 Bytes
import { Color } from './../math/Color';
import { Object3D } from './../core/Object3D';
import { DirectionalLightShadow } from './DirectionalLightShadow';
import { Light } from './Light';
/**
* Affects objects using MeshLambertMaterial or MeshPhongMaterial.
*
* @example
* // White directional light at half intensity shining from the top.
* var directionalLight = new THREE.DirectionalLight( 0xffffff, 0.5 );
* directionalLight.position.set( 0, 1, 0 );
* scene.add( directionalLight );
*
* @see <a href="https://github.com/mrdoob/three.js/blob/master/src/lights/DirectionalLight.js">src/lights/DirectionalLight.js</a>
*/
export class DirectionalLight extends Light {
constructor(color?: Color | string | number, intensity?: number);
/**
* Target used for shadow camera orientation.
*/
target: Object3D;
/**
* Light's intensity.
* Default — 1.0.
*/
intensity: number;
shadow: DirectionalLightShadow;
}