Skip to content

Commit

Permalink
relative url for scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanuel Farauanu committed Oct 19, 2023
1 parent 6f7a91b commit c1ac28c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
</style>
</head>
<body>
<script type="module" src="./lib/three.js"></script>
<script type="module" src="./lib/orbitcontrols.js"></script>
<script type="module" src="./main.js"></script>
</body>
</html>
12 changes: 6 additions & 6 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import * as THREE from '/lib/three.js'
import { OrbitControls } from '/lib/orbitcontrols.js'
import * as THREE from './lib/three.js'
import { OrbitControls } from './lib/orbitcontrols.js'

// Add any resources you want to load here
// You will then be able to reference them in initialise_scene
// e.g. as "resources.vert_shader"
const RESOURCES = [
// format is:
// ["name", "path-to-resource"]`
["vert_shader", "shaders/default.vert"],
["frag_shader", "shaders/default.frag"],
["vertl_shader", "shaders/light.vert"],
["fragl_shader", "shaders/light.frag"]
["vert_shader", "./shaders/default.vert"],
["frag_shader", "./shaders/default.frag"],
["vertl_shader", "./shaders/light.vert"],
["fragl_shader", "./shaders/light.frag"]
];

/*
Expand Down

0 comments on commit c1ac28c

Please sign in to comment.