|
@@ -4,6 +4,7 @@ import { TextureBlock } from 'babylonjs/Materials/Node/Blocks/Dual/textureBlock'
|
|
import { RefractionBlock } from 'babylonjs/Materials/Node/Blocks/PBR/refractionBlock';
|
|
import { RefractionBlock } from 'babylonjs/Materials/Node/Blocks/PBR/refractionBlock';
|
|
import { ReflectionTextureBlock } from 'babylonjs/Materials/Node/Blocks/Dual/reflectionTextureBlock';
|
|
import { ReflectionTextureBlock } from 'babylonjs/Materials/Node/Blocks/Dual/reflectionTextureBlock';
|
|
import { TextureLineComponent } from '../../sharedComponents/textureLineComponent';
|
|
import { TextureLineComponent } from '../../sharedComponents/textureLineComponent';
|
|
|
|
+import { CurrentScreenBlock } from 'babylonjs/Materials/Node/Blocks/Dual/currentScreenBlock';
|
|
|
|
|
|
export class TextureDisplayManager implements IDisplayManager {
|
|
export class TextureDisplayManager implements IDisplayManager {
|
|
private _previewCanvas: HTMLCanvasElement;
|
|
private _previewCanvas: HTMLCanvasElement;
|
|
@@ -30,7 +31,7 @@ export class TextureDisplayManager implements IDisplayManager {
|
|
|
|
|
|
if (!this._previewCanvas) {
|
|
if (!this._previewCanvas) {
|
|
contentArea.classList.add("texture-block");
|
|
contentArea.classList.add("texture-block");
|
|
- if (block instanceof TextureBlock) {
|
|
|
|
|
|
+ if (block instanceof TextureBlock || block instanceof CurrentScreenBlock) {
|
|
contentArea.classList.add("regular-texture-block");
|
|
contentArea.classList.add("regular-texture-block");
|
|
}
|
|
}
|
|
|
|
|