/ / S T U D I O Z E R O T H E O P E N M E T A V E R S E var canvas = document.getElementById('renderCanvas'); var engine = new BABYLON.Engine(canvas, true); var init = function(){ var scene = new BABYLON.Scene(engine); //var camera = new BABYLON.ArcRotateCamera('camera', 0, 0, 15, BABYLON.Vector3.Zero(), scene); var camera = new BABYLON.WebVRFreeCamera("WVR", new BABYLON.Vector3(0, 1, -15), scene); camera.upperRadiusLimit = 20000; camera.attachControl(canvas); scene.clearColor = new BABYLON.Color3(0,0,0) var sun = BABYLON.Mesh.CreateSphere('sun', 16, 4, scene); var sunMaterial = new BABYLON.StandardMaterial('sunMaterial', scene); sunMaterial.emissiveTexture = new BABYLON.Texture('https://s3-us-west-2.amazonaws.com/s.cdpn.io sunMaterial.diffuseColor = new BABYLON.Color3(0,0,0); sunMaterial.specularColor = new BABYLON.Color3(0,0,0); sun.material = sunMaterial; //sunlight var sunlight = new BABYLON.PointLight('sunlight', BABYLON.Vector3.Zero(), scene); sunlight.intesity = 2; // Planets Babylon JS D E C E M B E R 6 T H , 2 0 1 6 - R E A C T I V A T E - L O N D O N