Explorar el Código

fixing asset pathing

Justin Gilman hace 1 semana
padre
commit
88b61e338f

+ 0 - 0
beehive/scene.bin → assets/beehive/scene.bin


+ 0 - 0
beehive/scene.gltf → assets/beehive/scene.gltf


+ 0 - 0
beehive/textures/BB_066_001_baseColor.png → assets/beehive/textures/BB_066_001_baseColor.png


+ 0 - 0
beehive/textures/BB_066_001_normal.png → assets/beehive/textures/BB_066_001_normal.png


+ 0 - 0
cubemap/negx.jpg → assets/cubemap/negx.jpg


+ 0 - 0
cubemap/negy.jpg → assets/cubemap/negy.jpg


+ 0 - 0
cubemap/negz.jpg → assets/cubemap/negz.jpg


+ 0 - 0
cubemap/posx.jpg → assets/cubemap/posx.jpg


+ 0 - 0
cubemap/posy.jpg → assets/cubemap/posy.jpg


+ 0 - 0
cubemap/posz.jpg → assets/cubemap/posz.jpg


+ 13 - 13
cubemap/readme.txt → assets/cubemap/readme.txt

@@ -1,13 +1,13 @@
-Author
-======
-
-This is the work of Emil Persson, aka Humus.
-http://www.humus.name
-
-
-
-License
-=======
-
-This work is licensed under a Creative Commons Attribution 3.0 Unported License.
-http://creativecommons.org/licenses/by/3.0/
+Author
+======
+
+This is the work of Emil Persson, aka Humus.
+http://www.humus.name
+
+
+
+License
+=======
+
+This work is licensed under a Creative Commons Attribution 3.0 Unported License.
+http://creativecommons.org/licenses/by/3.0/

+ 0 - 0
cubemapsimple/negx.png → assets/cubemapsimple/negx.png


+ 0 - 0
cubemapsimple/negy.png → assets/cubemapsimple/negy.png


+ 0 - 0
cubemapsimple/negz.png → assets/cubemapsimple/negz.png


+ 0 - 0
cubemapsimple/posx.png → assets/cubemapsimple/posx.png


+ 0 - 0
cubemapsimple/posy.png → assets/cubemapsimple/posy.png


+ 0 - 0
cubemapsimple/posz.png → assets/cubemapsimple/posz.png


+ 0 - 0
flowers/scene.bin → assets/flowers/scene.bin


+ 0 - 0
flowers/scene.gltf → assets/flowers/scene.gltf


+ 0 - 0
flowers/textures/Material.002_baseColor.png → assets/flowers/textures/Material.002_baseColor.png


+ 0 - 0
textures/lawn.jpg → assets/textures/lawn.jpg


+ 0 - 1
index.html

@@ -6,5 +6,4 @@
     }
 </style>
 <div id="container"></div>
-<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r121/three.module.js" integrity="sha512-zhgQMS7vG+f5CHv6IQ26VllGlG8KulkoNT44jKeYPtyYU0AhGBifWF3IiC7cIumzeVrerdvaw/McehsSGjC7Jw==" crossorigin="anonymous"></script> -->
 <script type="module" src="./js/main.js"></script>

+ 1 - 1
js/Bee.js

@@ -1,5 +1,5 @@
 import * as THREE from 'three';
-import { Hive } from '../js/Hive.js';
+import { Hive } from './Hive.js';
 
 export class Bee {
     static collection = [];

+ 24 - 0
vite.config.js

@@ -0,0 +1,24 @@
+import { defineConfig } from 'vite'
+
+export default defineConfig(({ command, mode, isSsrBuild, isPreview }) => {
+    return {
+        root: './',
+    publicDir: './assets/',
+    base: './',
+    server:
+    {
+        host: true, // Open to local network and display URL
+        open: !('SANDBOX_URL' in process.env || 'CODESANDBOX_HOST' in process.env) // Open if it's not a CodeSandbox
+    },
+    build:
+    {
+        outDir: './dist', // Output in the dist/ folder
+        emptyOutDir: true, // Empty the folder first
+        sourcemap: true // Add sourcemap
+    },
+    plugins:
+    [
+    ]
+    }
+
+})