Skip to content
Browse files

Tweaked shadows in draggable cubes example.

  • Loading branch information...
1 parent 48eb624 commit aac91430d922ea1d570b69a18a85ecf420a097e7 @alteredq alteredq committed Sep 4, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 examples/webgl_interactive_draggablecubes.html
View
8 examples/webgl_interactive_draggablecubes.html
@@ -45,7 +45,7 @@
info.innerHTML = '<a href="http://github.com/mrdoob/three.js" target="_blank">three.js</a> webgl - draggable cubes';
container.appendChild( info );
- camera = new THREE.Camera( 70, window.innerWidth / window.innerHeight, 1, 10000 );
+ camera = new THREE.Camera( 70, window.innerWidth / window.innerHeight, 1, 5000 );
camera.position.z = 1000;
scene = new THREE.Scene();
@@ -83,15 +83,15 @@
projector = new THREE.Projector();
- renderer = new THREE.WebGLRenderer();
+ renderer = new THREE.WebGLRenderer( { antialias: true } );
renderer.sortObjects = false;
renderer.setSize( window.innerWidth, window.innerHeight );
renderer.shadowCameraNear = 3;
renderer.shadowCameraFar = camera.far;
- renderer.shadowCameraFov = 50;
+ renderer.shadowCameraFov = 30;
- renderer.shadowMapBias = 0.0039;
+ renderer.shadowMapBias = 0.00389;
renderer.shadowMapDarkness = 0.5;
renderer.shadowMapWidth = 1024;
renderer.shadowMapHeight = 1024;

0 comments on commit aac9143

Please sign in to comment.
Something went wrong with that request. Please try again.