mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
modify the default value of _luminance (#4185)
This commit is contained in:
committed by
Weiliang Wang
parent
d997ebeaad
commit
1d797a9325
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user