From 1d797a9325ca4c9a183ae5a476c438c3dffcc2a1 Mon Sep 17 00:00:00 2001 From: Santy-Wang Date: Wed, 10 Apr 2019 15:43:32 +0800 Subject: [PATCH] modify the default value of _luminance (#4185) --- cocos/3d/framework/sphere-light-component.ts | 2 +- cocos/3d/framework/spot-light-component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/3d/framework/sphere-light-component.ts b/cocos/3d/framework/sphere-light-component.ts index 29228bd012..47702b8cd8 100644 --- a/cocos/3d/framework/sphere-light-component.ts +++ b/cocos/3d/framework/sphere-light-component.ts @@ -36,7 +36,7 @@ export class SphereLightComponent extends LightComponent { @property protected _size = 0.15; @property - protected _luminance = 1700 / nt2lm(this._size); + protected _luminance = 1700 / nt2lm(0.15); @property protected _term = PhotometricTerm.LUMINOUS_POWER; @property diff --git a/cocos/3d/framework/spot-light-component.ts b/cocos/3d/framework/spot-light-component.ts index 076f6f0050..b30f568f73 100644 --- a/cocos/3d/framework/spot-light-component.ts +++ b/cocos/3d/framework/spot-light-component.ts @@ -37,7 +37,7 @@ export class SpotLightComponent extends LightComponent { @property protected _size = 0.15; @property - protected _luminance = 1700 / nt2lm(this._size); + protected _luminance = 1700 / nt2lm(0.15); @property protected _term = PhotometricTerm.LUMINOUS_POWER; @property