import "./style.css";
import * as THREE from "three";
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js";
import * as dat from "dat.gui";
/**
* Base
*/
// Debug
const gui = new dat.GUI();
// Canvas
const canvas = document.querySelector("canvas.webgl");
// Scene
const scene = new THREE.Scene();
/**
* Textures
*/
const textureLoader = new THREE.TextureLoader();
const doorColorTexture = textureLoader.load(
"../static/textures/door/color.jpg"
);
const doorAlphaTexture = textureLoader.load(
"../static/textures/door/alpha.jpg"
);
const doorAmbientOcclusionTexture = textureLoader.load(
"../static/textures/door/ambientOcclusion.jpg"
);
const doorHeightTexture = textureLoader.load(
"../static/textures/door/height.jpg"
);
const doorNormalTexture = textureLoader.load(
"../static/textures/door/normal.jpg"
);
const doorMetalnessTexture = textureLoader.load(
"../static/textures/door/metalness.jpg"
);
const doorRoughnessTexture = textureLoader.load(
"../static/textures/door/roughness.jpg"
);
const bricksColorTexture = textureLoader.load(
"../static/textures/bricks/color.jpg"
);
const bricksAmbientOcclusionTexture = textureLoader.load(
"../static/textures/bricks/ambientOcclusion.jpg"
);
const bricksNormalTexture = textureLoader.load(
"../static/textures/bricks/normal.jpg"
);
const bricksRoughnessTexture = textureLoader.load(
"../static/textures/bricks/roughness.jpg"
);
const grassColorTexture = textureLoader.load(
"../static/textures/grass/color.jpg"
);
const grassAmbientOcclusionTexture = textureLoader.load(
"../static/textures/grass/ambientOcclusion.jpg"
);
const grassNormalTexture = textureLoader.load(
"../static/textu