]> gitweb.ps.run Git - cloth_sim/blobdiff - js/main.js
restructure
[cloth_sim] / js / main.js
similarity index 93%
rename from Scripts/main.js
rename to js/main.js
index 1a30f7a9db2cc3c240631e90e03d8505e0a00c15..64900d3c9002e37e9a09bd02586e2ea683c3a1ab 100644 (file)
@@ -37,7 +37,7 @@ function setup_scene(canvasSpace) {
   /** 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
@@ -85,7 +85,7 @@ function init() {
   /** 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