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