|
|
|
@ -5,9 +5,10 @@ import { ColorResult, SketchPicker } from 'react-color';
|
|
|
|
|
import { Color, MathUtils, Matrix4, Vector3 } from 'three';
|
|
|
|
|
import { Entitys2Data } from '../../../Add-on/ExportData';
|
|
|
|
|
import { app } from '../../../ApplicationServices/Application';
|
|
|
|
|
import { safeEval } from '../../../Common/eval';
|
|
|
|
|
import { ResourcesCDN_HOST } from '../../../Common/HostUrl';
|
|
|
|
|
import { CalcSunShadowCameraExtents } from '../../../Common/LightUtils';
|
|
|
|
|
import { FixedNotZero } from '../../../Common/Utils';
|
|
|
|
|
import { safeEval } from '../../../Common/eval';
|
|
|
|
|
import { commandMachine } from '../../../Editor/CommandMachine';
|
|
|
|
|
import { CommandState } from '../../../Editor/CommandState';
|
|
|
|
|
import { userConfig } from '../../../Editor/UserConfig';
|
|
|
|
@ -397,7 +398,6 @@ export default class SunLightGui extends Component
|
|
|
|
|
minimal
|
|
|
|
|
placement='top'
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
minimal small
|
|
|
|
|
intent={Intent.PRIMARY}
|
|
|
|
@ -416,9 +416,8 @@ export default class SunLightGui extends Component
|
|
|
|
|
</FormGroup>
|
|
|
|
|
<FormGroup>
|
|
|
|
|
<div className='sun-light-angle'>
|
|
|
|
|
<Label>源角度:</Label>
|
|
|
|
|
<Label>源角:</Label>
|
|
|
|
|
<INumericInput
|
|
|
|
|
style={{ marginLeft: "none" }}
|
|
|
|
|
min={0}
|
|
|
|
|
max={5}
|
|
|
|
|
float={4}
|
|
|
|
@ -444,7 +443,8 @@ export default class SunLightGui extends Component
|
|
|
|
|
value={this.store.sunLightSourceAngle}
|
|
|
|
|
onChange={async (val) =>
|
|
|
|
|
{
|
|
|
|
|
await this.SetSunLightSourceAngle(val);
|
|
|
|
|
let v = parseFloat(FixedNotZero(val, 4));
|
|
|
|
|
await this.SetSunLightSourceAngle(v);
|
|
|
|
|
app.Viewer.UpdateRender();
|
|
|
|
|
}}
|
|
|
|
|
onRelease={() =>
|
|
|
|
|