import * as React from "react"; import { Observable } from "babylonjs/Misc/observable"; import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture"; import { BackgroundMaterial } from "babylonjs/Materials/Background/backgroundMaterial"; import { PropertyChangedEvent } from "../../../../propertyChangedEvent"; import { LineContainerComponent } from "../../../lineContainerComponent"; import { Color3LineComponent } from "../../../lines/color3LineComponent"; import { CheckBoxLineComponent } from "../../../lines/checkBoxLineComponent"; import { SliderLineComponent } from "../../../lines/sliderLineComponent"; import { CommonMaterialPropertyGridComponent } from "./commonMaterialPropertyGridComponent"; import { TextureLinkLineComponent } from "../../../lines/textureLinkLineComponent"; import { LockObject } from "../lockObject"; import { GlobalState } from '../../../../globalState'; interface IBackgroundMaterialPropertyGridComponentProps { globalState: GlobalState, material: BackgroundMaterial; lockObject: LockObject; onSelectionChangedObservable?: Observable; onPropertyChangedObservable?: Observable; } export class BackgroundMaterialPropertyGridComponent extends React.Component { private _onDebugSelectionChangeObservable = new Observable(); constructor(props: IBackgroundMaterialPropertyGridComponentProps) { super(props); } renderTextures() { const material = this.props.material; const onDebugSelectionChangeObservable = this._onDebugSelectionChangeObservable; return ( { material.reflectionTexture && } ); } render() { const material = this.props.material; return (
{this.renderTextures()}
); } }