UNPKG

kitchen-simulator

Version:

It is a kitchen simulator (self-contained micro-frontend).

79 lines 2.01 kB
import { WallFactory } from "../../factories/export"; import wallImage from "./wall.png"; import plasterTexture from "./textures/plaster.jpg"; import plasterNormal from "./textures/plaster-normal.jpg"; import bricksTexture from "./textures/bricks.jpg"; import bricksNormal from "./textures/bricks-normal.jpg"; import paintedTexture from "./textures/painted.jpg"; import paintedNormal from "./textures/painted-normal.jpg"; import mordenTexture from "./textures/morden.jpg"; import mordenNormal from "./textures/morden-normal.jpg"; var info = { title: 'wall', tag: ['wall'], description: 'Wall with bricks or painted', image: wallImage, visibility: { catalog: true, layerElementsVisible: true } }; var textures = { plaster: { name: 'Plaster', uri: plasterTexture, lengthRepeatScale: 0.005, heightRepeatScale: 0.005, normal: { uri: plasterNormal, lengthRepeatScale: 0.005, heightRepeatScale: 0.005, normalScaleX: 0.4, normalScaleY: 0.4, color: '#000000' } }, bricks: { name: 'Bricks', uri: bricksTexture, lengthRepeatScale: 0.009, heightRepeatScale: 0.009, normal: { uri: bricksNormal, lengthRepeatScale: 0.009, heightRepeatScale: 0.009, normalScaleX: 0.4, normalScaleY: 0.4, color: '#000000' } }, painted: { name: 'Painted', uri: paintedTexture, lengthRepeatScale: 0.005, heightRepeatScale: 0.005, normal: { uri: paintedNormal, lengthRepeatScale: 0.005, heightRepeatScale: 0.005, normalScaleX: 0.4, normalScaleY: 0.4, color: '#000000' } }, morden: { name: 'Morden', uri: mordenTexture, lengthRepeatScale: 0.005, heightRepeatScale: 0.005, normal: { uri: mordenNormal, lengthRepeatScale: 0.005, heightRepeatScale: 0.005, normalScaleX: 0.4, normalScaleY: 0.4, color: '#000000' } } }; export default WallFactory('wall', info, textures);