From bb558a2d7999a78d7abcea0f52e1d3adbd3a86d5 Mon Sep 17 00:00:00 2001 From: Simon Korz Date: Mon, 10 Jul 2017 14:05:10 +0200 Subject: [PATCH] three: Specify DirectionalLightShadow types - DirectionalLight.shadow from LightShadow to DirectionalLightShadow - DirectionalLightShadow.camera from Camera to OrthographicCamera Reason: DirectionalLight always uses DirectionalLightShadow with OrthographicCamera and properties of OrthographicCamera that are not in Camera need to be available. Also see: https://threejs.org/docs/index.html#api/lights/shadows/DirectionalLightShadow --- types/three/three-core.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/types/three/three-core.d.ts b/types/three/three-core.d.ts index 7a6a6ec9ac..c01f6fddfd 100644 --- a/types/three/three-core.d.ts +++ b/types/three/three-core.d.ts @@ -1937,10 +1937,12 @@ export class DirectionalLight extends Light { */ intensity: number; - shadow: LightShadow; + shadow: DirectionalLightShadow; } -export class DirectionalLightShadow extends LightShadow {} +export class DirectionalLightShadow extends LightShadow { + camera: OrthographicCamera; +} export class HemisphereLight extends Light { constructor(skyColorHex?: number|string, groundColorHex?: number|string, intensity?: number);