|
|
@ -66,7 +66,10 @@ export class LightDataCom extends React.Component<ILightComponentProps, {}> {
|
|
|
|
if (k === "IndirectLightingIntensity")
|
|
|
|
if (k === "IndirectLightingIntensity")
|
|
|
|
app.Database.HemisphereLight.IndirectLightingIntensity = val;
|
|
|
|
app.Database.HemisphereLight.IndirectLightingIntensity = val;
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
app.Database.HemisphereLight.Intensity = val;
|
|
|
|
app.Database.HemisphereLight.Intensity = val;
|
|
|
|
|
|
|
|
app.Database.AmbientLight.Intensity = Math.min(app.Database.SunLight.Intensity, 55 - (app.Database.HemisphereLight.Intensity * 4)) / 20;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (userConfig.synchronousEnable)
|
|
|
|
if (userConfig.synchronousEnable)
|
|
|
|
app.WebSocket.Send(JSON.stringify(Entitys2Data([app.Database.HemisphereLight])));
|
|
|
|
app.WebSocket.Send(JSON.stringify(Entitys2Data([app.Database.HemisphereLight])));
|
|
|
|