Skip to content

Commit

Permalink
Tweaked shadows in draggable cubes example.
Browse files Browse the repository at this point in the history
  • Loading branch information
alteredq committed Sep 4, 2011
1 parent 48eb624 commit aac9143
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/webgl_interactive_draggablecubes.html
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit aac9143

Please sign in to comment.