|
|
|
@ -602,6 +602,7 @@ export class RightPlaneLightStore implements IConfigStore
|
|
|
|
|
this.m_Option.SunLightTemperature = sunLightStore.sunLightColorTemperature;
|
|
|
|
|
this.m_Option.SunLightElevationDeg = sunLightStore.sunLightElevationDeg;
|
|
|
|
|
this.m_Option.SunLightRotateDeg = sunLightStore.sunLightRotateDeg;
|
|
|
|
|
this.m_Option.SunLightSourceAngle = sunLightStore.sunLightSourceAngle;
|
|
|
|
|
this.m_Option.ShowExposure = lightStore.ShowExposure;
|
|
|
|
|
this.m_Option.AutoExposure = lightStore.hemisphereLightData.AutoExposure;
|
|
|
|
|
this.m_Option.ExposureCompensation = parseInt(lightStore.hemisphereLightData.ExposureCompensation);
|
|
|
|
@ -642,6 +643,15 @@ export class RightPlaneLightStore implements IConfigStore
|
|
|
|
|
lightStore.sunLightData.time = cof.option.SunTime as ETime;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (this.m_Option.version < 3)
|
|
|
|
|
{
|
|
|
|
|
this.m_Option.version = 3;
|
|
|
|
|
sunLightStore.sunLightSourceAngle = DefaultRightPlaneLightOption.SunLightSourceAngle;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
sunLightStore.sunLightSourceAngle = cof.option.SunLightSourceAngle;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let sunLight = app.Database.SunLight;
|
|
|
|
|
let skyLight = app.Database.HemisphereLight;
|
|
|
|
|
let pos: Vector3;
|
|
|
|
@ -661,7 +671,7 @@ export class RightPlaneLightStore implements IConfigStore
|
|
|
|
|
sunLight.IndirectLightingIntensity = cof.option.SunLightIndirectLightingIntensity;
|
|
|
|
|
sunLight.Color = new Color(cof.option.SunLightColor);
|
|
|
|
|
sunLight.Temperature = cof.option.SunLightTemperature;
|
|
|
|
|
|
|
|
|
|
sunLight.LightSourceAngle = sunLightStore.sunLightSourceAngle;
|
|
|
|
|
sunLight.SunPosition = pos;
|
|
|
|
|
|
|
|
|
|
CalcSunShadowCameraExtents(app.Database.SunLight, false);
|
|
|
|
|