d( stats.dom );

				// raycast visualizations
				const lineGeometry = new THREE.BufferGeometry();
				lineGeometry.setAttribute( 'position', new THREE.BufferAttribute( new Float32Array( MAX_RAYS * 2 * 3 ), 3 ) );
				lineSegments = new THREE.LineSegments( lineGeometry, new THREE.LineBasicMaterial( {
					color: RAY_COLOR,
					transparent: true,
					opacity: 0.25,
					depthWrite: false
				} ) );

				sphereInstance = new THREE.InstancedMesh(
					new THREE.SphereGeometry(),
					new THREE.MeshBasicMate