Browse Source

TS: Added remaining LightProbe TS files.

Mugen87 6 years ago
parent
commit
fe80f8cf7b

+ 4 - 0
src/Three.d.ts

@@ -58,6 +58,9 @@ export * from './lights/DirectionalLight';
 export * from './lights/AmbientLight';
 export * from './lights/LightShadow';
 export * from './lights/Light';
+export * from './lights/AmbientLightProbe';
+export * from './lights/HemisphereLightProbe';
+export * from './lights/LightProbe';
 export * from './cameras/StereoCamera';
 export * from './cameras/PerspectiveCamera';
 export * from './cameras/OrthographicCamera';
@@ -123,6 +126,7 @@ export * from './math/Vector3';
 export * from './math/Vector2';
 export * from './math/Quaternion';
 export * from './math/Color';
+export * from './math/SphericalHarmonics3';
 export * from './extras/objects/ImmediateRenderObject';
 export * from './helpers/VertexNormalsHelper';
 export * from './helpers/SpotLightHelper';

+ 10 - 0
src/lights/AmbientLightProbe.d.ts

@@ -0,0 +1,10 @@
+import { Color } from './../math/Color';
+import { LightProbe } from './LightProbe';
+
+export class AmbientLightProbe extends LightProbe {
+
+	constructor( color?: Color | string | number, intensity?: number );
+
+	isAmbientLightProbe: true;
+
+}

+ 10 - 0
src/lights/HemisphereLightProbe.d.ts

@@ -0,0 +1,10 @@
+import { Color } from './../math/Color';
+import { LightProbe } from './LightProbe';
+
+export class HemisphereLightProbe extends LightProbe {
+
+	constructor( skyColor?: Color | string | number, groundColor?: Color | string | number, intensity?: number );
+
+	isHemisphereLightProbe: true;
+
+}

+ 11 - 0
src/lights/LightProbe.d.ts

@@ -0,0 +1,11 @@
+import { SphericalHarmonics3 } from './../math/SphericalHarmonics3';
+import { Light } from './Light';
+
+export class LightProbe extends Light {
+
+	constructor( sh?: SphericalHarmonics3, intensity?: number );
+
+	isLightProbe: true;
+	sh: SphericalHarmonics3;
+
+}