mirror of
https://gitlab.com/arnekeller/tunnel-racer.git
synced 2024-11-09 09:10:36 +00:00
Render spheres with less parts
This commit is contained in:
parent
6d3a9f4d3a
commit
0dff8aceac
@ -10,7 +10,7 @@
|
||||
<body>
|
||||
<div id="info">Score: <span id="score">0</span></div>
|
||||
<button id="start">Start</button>
|
||||
<div id="version">Version 1.2c</div>
|
||||
<div id="version">Version 1.2d</div>
|
||||
|
||||
<script src="./gyronorm.complete.min.js"></script>
|
||||
<script src="./three.min.js"></script>
|
||||
|
2
game.js
2
game.js
@ -220,7 +220,7 @@ scene = new THREE.Scene();
|
||||
const camera = new THREE.PerspectiveCamera(70, window.innerWidth / window.innerHeight, 0.1, 5000);
|
||||
|
||||
// obstacle geometry and material
|
||||
const geometrySphere = new THREE.SphereGeometry(11, 32, 32);
|
||||
const geometrySphere = new THREE.SphereGeometry(11, 16, 16);
|
||||
const materialSphere = new THREE.MeshBasicMaterial();
|
||||
const customMaterial = new THREE.ShaderMaterial({
|
||||
uniforms: {
|
||||
|
Loading…
Reference in New Issue
Block a user