Render spheres with less parts

This commit is contained in:
Arne Keller 2022-02-01 18:07:39 +01:00
parent 6d3a9f4d3a
commit 0dff8aceac
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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: {