Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IES to inspector #15959

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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