/** add scene background */\r
const loader = new THREE.TextureLoader();\r
const texture = loader.load(\r
- 'Textures/tears_of_steel_bridge_2k.jpg',\r
+ '/projects/cloth/img/tears_of_steel_bridge_2k.jpg',\r
() => {\r
const rt = new THREE.WebGLCubeRenderTarget(texture.image.height);\r
rt.fromEquirectangularTexture(renderer, texture);\r
/** Create cloth and generate mesh */\r
const cloth = new Cloth(1, 0.5, 20, 20);\r
const clothGeometry = cloth.generateGeometry();\r
- const clothMaterial = new THREE.MeshStandardMaterial({ map: loader.load('Textures/hsrm2.png'), color: 0xffffff, side: THREE.DoubleSide, flatShading: false });\r
+ const clothMaterial = new THREE.MeshStandardMaterial({ map: loader.load('/projects/cloth/img/hsrm2.png'), color: 0xffffff, side: THREE.DoubleSide, flatShading: false });\r
//const clothMaterial = new THREE.MeshStandardMaterial({ color: 0xC70039, side: THREE.DoubleSide, flatShading: false });\r
const clothMesh = new THREE.Mesh(clothGeometry, clothMaterial);\r
scene.add(clothMesh);\r