mirror of
https://gitlab.com/arnekeller/tunnel-racer.git
synced 2024-11-10 01:30:37 +00:00
Relative resource URLs
This commit is contained in:
parent
6e8a13dd0d
commit
8c2a8b6272
@ -5,8 +5,8 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
<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 type="text/css" rel="stylesheet" href="main.css">
|
||||||
<link rel="icon" href="/favicon.png">
|
<link rel="icon" href="./favicon.png">
|
||||||
<script src="/gyronorm.complete.min.js"></script>
|
<script src="./gyronorm.complete.min.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
@ -17,7 +17,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<button id="start" disabled>Start</button>
|
<button id="start" disabled>Start</button>
|
||||||
|
|
||||||
<script src="/three.min.js"></script>
|
<script src="./three.min.js"></script>
|
||||||
<script src="/game.js"></script>
|
<script src="./game.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
2
game.js
2
game.js
@ -226,7 +226,7 @@ const customMaterial = new THREE.ShaderMaterial({
|
|||||||
|
|
||||||
|
|
||||||
const loader = new THREE.TextureLoader();
|
const loader = new THREE.TextureLoader();
|
||||||
const texture = loader.load('/bayer.png');
|
const texture = loader.load('./bayer.png');
|
||||||
texture.minFilter = THREE.NearestFilter;
|
texture.minFilter = THREE.NearestFilter;
|
||||||
texture.magFilter = THREE.NearestFilter;
|
texture.magFilter = THREE.NearestFilter;
|
||||||
texture.wrapS = THREE.RepeatWrapping;
|
texture.wrapS = THREE.RepeatWrapping;
|
||||||
|
Loading…
Reference in New Issue
Block a user