var scene = new THREE.Scene(); ! var camera = new THREE.PerspectiveCamera( 40, width / height, 1, 1000 ); camera.position.set( 0, 0, 3 ); ! var renderer = new THREE.WebGLRenderer(); renderer.setSize( width, height ); document.body.appendChild( renderer.domElement ); ! var directionalLight = new THREE.DirectionalLight( 0xffffff ); directionalLight.position.set( 0, 1, 1 ).normalize(); scene.add( directionalLight ); ! var box = new THREE.Mesh( new THREE.BoxGeometry( 1, 1, 1 ), new THREE.MeshPhongMaterial( { color: 0xff0000 } ) ); scene.add( box ); ! ( function renderLoop () { ! make a renderer
• Stage has been deprecated, now container • Name spaces has been changed • EventListener has been supported • Color matrix has been changed to 5x4 from 4x4 and many changes %JGGFSFODFTCFUXFFO7BOE7
• WebUI for 3D contents Still not exist a lot • Multiple devices High-End Gaming PC, Laptop, Mobile and others • Internet Connection 8IBUXFOFFEUPUIJOLBCPVU
d = navigator. getVRDevices() •d[ i ].VRDevice (Type of the device) •d[ i ].VREyeParameters •FOV •eyeTranslation •d[ i ].VRPositionState •position •velocity •orientation •angularVelocity othres...