<script src="path/to/three.js"></script>
<script src="path/to/holoplay.js"></script>
const scene = new THREE.Scene();
const camera = new HoloPlay.Camera();
const renderer = new HoloPlay.Renderer();
document.body.appendChild(renderer.domElement);
const sphere = new THREE.Mesh(
new THREE.SphereBufferGeometry(0.02),
new THREE.MeshLambertMaterial({color: 'green'}));
const directionalLight = new THREE.DirectionalLight(0xFFFFFF, 1);
directionalLight.position.set(0, 1, 2);
scene.add(directionalLight);
const ambientLight = new THREE.AmbientLight(0xFFFFFF, 0.4);
requestAnimationFrame(update);
sphere.position.x = Math.sin(time / 1000) / 20;
renderer.render(scene, camera);
requestAnimationFrame(update);