diff --git a/examples/misc_controls_deviceorientation.html b/examples/misc_controls_deviceorientation.html index a2f94327638bb5..6a32f6a9b82b8a 100644 --- a/examples/misc_controls_deviceorientation.html +++ b/examples/misc_controls_deviceorientation.html @@ -40,66 +40,70 @@ + } + + function onWindowResize() { + + camera.aspect = window.innerWidth / window.innerHeight; + camera.updateProjectionMatrix(); + renderer.setSize( window.innerWidth, window.innerHeight ); + + } + + diff --git a/examples/webgl_panorama_dualfisheye.html b/examples/webgl_panorama_dualfisheye.html index 8a6ddfb88c34d0..d308274d29ded6 100644 --- a/examples/webgl_panorama_dualfisheye.html +++ b/examples/webgl_panorama_dualfisheye.html @@ -61,6 +61,7 @@ scene = new THREE.Scene(); var geometry = new THREE.SphereBufferGeometry( 500, 60, 40 ).toNonIndexed(); + // invert the geometry on the x-axis so that all of the faces point inward geometry.scale( - 1, 1, 1 ); // Remap UVs diff --git a/examples/webgl_panorama_equirectangular.html b/examples/webgl_panorama_equirectangular.html index 932fa7b8c8e656..b73c4f6fb8513c 100644 --- a/examples/webgl_panorama_equirectangular.html +++ b/examples/webgl_panorama_equirectangular.html @@ -61,7 +61,8 @@ scene = new THREE.Scene(); - var geometry = new THREE.SphereGeometry( 500, 60, 40 ); + var geometry = new THREE.SphereBufferGeometry( 500, 60, 40 ); + // invert the geometry on the x-axis so that all of the faces point inward geometry.scale( - 1, 1, 1 ); var material = new THREE.MeshBasicMaterial( { diff --git a/examples/webgl_video_panorama_equirectangular.html b/examples/webgl_video_panorama_equirectangular.html index c524b5352aa56f..4bf39cd9e53189 100644 --- a/examples/webgl_video_panorama_equirectangular.html +++ b/examples/webgl_video_panorama_equirectangular.html @@ -64,6 +64,7 @@ scene = new THREE.Scene(); var geometry = new THREE.SphereBufferGeometry( 500, 60, 40 ); + // invert the geometry on the x-axis so that all of the faces point inward geometry.scale( - 1, 1, 1 ); var video = document.createElement( 'video' ); @@ -71,7 +72,7 @@ video.height = 360; video.loop = true; video.muted = true; - video.src = "textures/pano.webm"; + video.src = 'textures/pano.webm'; video.setAttribute( 'webkit-playsinline', 'webkit-playsinline' ); video.play(); diff --git a/examples/webvr_video.html b/examples/webvr_video.html index f0118699052bd0..c9bbcb6827fe9d 100644 --- a/examples/webvr_video.html +++ b/examples/webvr_video.html @@ -85,6 +85,7 @@ // left var geometry = new THREE.SphereGeometry( 500, 60, 40 ); + // invert the geometry on the x-axis so that all of the faces point inward geometry.scale( - 1, 1, 1 ); var uvs = geometry.faceVertexUvs[ 0 ];