Skip to content

Commit

Permalink
Add IES to inspector (#15959)
Browse files Browse the repository at this point in the history
  • Loading branch information
deltakosh authored Dec 5, 2024
1 parent 92698c3 commit 06189ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ export class PropertyGridTabComponent extends PaneComponent {
light={pointLight}
lockObject={this._lockObject}
onPropertyChangedObservable={this.props.onPropertyChangedObservable}
onSelectionChangedObservable={this.props.onSelectionChangedObservable}
/>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ import { FloatLineComponent } from "shared-ui-components/lines/floatLineComponen
import { CommonShadowLightPropertyGridComponent } from "./commonShadowLightPropertyGridComponent";
import type { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
import type { GlobalState } from "../../../../globalState";
import { TextureLinkLineComponent } from "../../../../../components/actionTabs/lines/textureLinkLineComponent";

interface ISpotLightPropertyGridComponentProps {
globalState: GlobalState;
light: SpotLight;
lockObject: LockObject;
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
onSelectionChangedObservable?: Observable<any>;
}

export class SpotLightPropertyGridComponent extends React.Component<ISpotLightPropertyGridComponentProps> {
Expand Down Expand Up @@ -86,6 +88,10 @@ export class SpotLightPropertyGridComponent extends React.Component<ISpotLightPr
propertyName="exponent"
onPropertyChangedObservable={this.props.onPropertyChangedObservable}
/>

{light.iesProfileTexture && (
<TextureLinkLineComponent label="IES Profile" texture={light.iesProfileTexture} onSelectionChangedObservable={this.props.onSelectionChangedObservable} />
)}
</LineContainerComponent>
<CommonShadowLightPropertyGridComponent
globalState={this.props.globalState}
Expand Down

0 comments on commit 06189ba

Please sign in to comment.