Ver Fonte

GLTFExporter: Fixed Ortho camera near value, as discussed on #13429

Fernando Serrano há 7 anos atrás
pai
commit
731f121506
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      examples/misc_exporter_gltf.html

+ 1 - 1
examples/misc_exporter_gltf.html

@@ -440,7 +440,7 @@
 				// ---------------------------------------------------------------------
 				// Ortho camera
 				// ---------------------------------------------------------------------
-				var cameraOrtho = new THREE.OrthographicCamera( window.innerWidth / - 2, window.innerWidth / 2, window.innerHeight / 2, window.innerHeight / - 2, - 10, 10 );
+				var cameraOrtho = new THREE.OrthographicCamera( window.innerWidth / - 2, window.innerWidth / 2, window.innerHeight / 2, window.innerHeight / - 2, 0.1, 10 );
 				scene1.add( cameraOrtho );
 				cameraOrtho.name = 'OrthographicCamera';