Skip to content

Commit ea4aaac

Browse files
committed
Improve near/far settings.
1 parent c50260e commit ea4aaac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/webgl_loader_gltf_anisotropy.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,13 @@
5353

5454
scene = new THREE.Scene();
5555

56-
camera = new THREE.PerspectiveCamera( 50, window.innerWidth / window.innerHeight, 0.25, 20 );
56+
camera = new THREE.PerspectiveCamera( 50, window.innerWidth / window.innerHeight, 0.02, 2 );
5757
camera.position.set( 0.35, 0.05, 0.35 );
5858

5959
controls = new OrbitControls( camera, renderer.domElement );
6060
controls.addEventListener( 'change', render );
6161
controls.target.set( 0, -0.05, 0.1 );
62+
controls.maxDistance = 1.5;
6263
controls.update();
6364

6465
const rgbeLoader = new RGBELoader()

0 commit comments

Comments
 (0)