Explorar o código

Add camera.far argument

Garrett Johnson %!s(int64=6) %!d(string=hai) anos
pai
achega
96db842b11
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/webgl_clipping_stencil.html

+ 1 - 1
examples/webgl_clipping_stencil.html

@@ -115,7 +115,7 @@
 
 				scene = new THREE.Scene();
 
-				camera = new THREE.PerspectiveCamera( 36, window.innerWidth / window.innerHeight, 1 );
+				camera = new THREE.PerspectiveCamera( 36, window.innerWidth / window.innerHeight, 1, 100 );
 				camera.position.set( 0, 1.3, 3 );
 
 				scene.add( new THREE.AmbientLight( 0xffffff, 0.5 ) );