Browse Source

Examples: Fixed pole pitching in equirectangular panorama example. See #15892.

Mr.doob 6 years ago
parent
commit
9957632e70
1 changed files with 4 additions and 3 deletions
  1. 4 3
      examples/webgl_panorama_equirectangular.html

+ 4 - 3
examples/webgl_panorama_equirectangular.html

@@ -66,9 +66,10 @@
 				// 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( {
-					map: new THREE.TextureLoader().load( 'textures/2294472375_24a3b8ef46_o.jpg' )
-				} );
+				var texture = new THREE.TextureLoader().load( 'textures/2294472375_24a3b8ef46_o.jpg' );
+				texture.minFilter = THREE.LinearFilter;
+
+				var material = new THREE.MeshBasicMaterial( { map: texture } );
 
 				mesh = new THREE.Mesh( geometry, material );