Skip to content

Commit

Permalink
Scale adjustment from centimeter to meter (#26260)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag committed Jun 15, 2023
1 parent e6f7c4e commit 2c56c08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Binary file modified examples/screenshots/webgl_video_panorama_equirectangular.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions examples/webgl_video_panorama_equirectangular.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
onPointerDownLon = 0,
onPointerDownLat = 0;

const distance = 50;
const distance = .5;

init();
animate();
Expand All @@ -59,11 +59,11 @@

const container = document.getElementById( 'container' );

camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 1, 1100 );
camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, .25, 10 );

scene = new THREE.Scene();

const geometry = new THREE.SphereGeometry( 500, 60, 40 );
const geometry = new THREE.SphereGeometry( 5, 60, 40 );
// invert the geometry on the x-axis so that all of the faces point inward
geometry.scale( - 1, 1, 1 );

Expand All @@ -78,6 +78,7 @@
scene.add( mesh );

renderer = new THREE.WebGLRenderer();
renderer.useLegacyLights = false;
renderer.setPixelRatio( window.devicePixelRatio );
renderer.setSize( window.innerWidth, window.innerHeight );
container.appendChild( renderer.domElement );
Expand Down

0 comments on commit 2c56c08

Please sign in to comment.