From 2e41c77a42da62ab2b30a231f27805907b9b3d28 Mon Sep 17 00:00:00 2001 From: scarletsky Date: Wed, 27 Mar 2019 13:34:36 +0800 Subject: [PATCH] fix: createAmbientCubemapLight should return Promise --- typescript/application.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typescript/application.d.ts b/typescript/application.d.ts index 8abbc5816..3309cbf55 100644 --- a/typescript/application.d.ts +++ b/typescript/application.d.ts @@ -176,11 +176,11 @@ export namespace application { createSpotLight(position?: Vector3Like, target?: Vector3Like, range?: number, color?: RGBLike, intensity?: number): SpotLight; createPointLight(position?: Vector3Like, range?: number, color?: RGBLike, intensity?: number): PointLight; createAmbientLight(color?: RGBLike, intensity?: number): AmbientLight; - createAmbientCubemapLight(envImage: ImageLike|TextureCube, specularIntensity?: number, diffuseIntensity?: number, exposure?: number, prefilteredCubemapSize?: number): { + createAmbientCubemapLight(envImage: ImageLike|TextureCube, specularIntensity?: number, diffuseIntensity?: number, exposure?: number, prefilteredCubemapSize?: number): Promise<{ specular: AmbientCubemapLight, diffuse: AmbientSHLight, environmentMap: TextureCube|Texture2D - } + }>; loadModel(url: string, opts: { shader?: string;