Relative resource URLs

This commit is contained in:
Arne Keller 2022-01-31 10:33:58 +01:00
parent 6e8a13dd0d
commit 8c2a8b6272
2 changed files with 5 additions and 5 deletions

View File

@ -5,8 +5,8 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link type="text/css" rel="stylesheet" href="main.css">
<link rel="icon" href="/favicon.png">
<script src="/gyronorm.complete.min.js"></script>
<link rel="icon" href="./favicon.png">
<script src="./gyronorm.complete.min.js"></script>
</head>
<body>
@ -17,7 +17,7 @@
</div>
<button id="start" disabled>Start</button>
<script src="/three.min.js"></script>
<script src="/game.js"></script>
<script src="./three.min.js"></script>
<script src="./game.js"></script>
</body>
</html>

View File

@ -226,7 +226,7 @@ const customMaterial = new THREE.ShaderMaterial({
const loader = new THREE.TextureLoader();
const texture = loader.load('/bayer.png');
const texture = loader.load('./bayer.png');
texture.minFilter = THREE.NearestFilter;
texture.magFilter = THREE.NearestFilter;
texture.wrapS = THREE.RepeatWrapping;