|
@@ -77,8 +77,6 @@
|
|
|
|
|
|
var container = document.getElementById( 'container' );
|
|
|
renderer = new THREE.WebGLRenderer({antialias: true});
|
|
|
- renderer.shadowMap.enabled = true;
|
|
|
- renderer.shadowMap.type = THREE.PCSoftShadowMap;
|
|
|
renderer.setPixelRatio( window.devicePixelRatio );
|
|
|
renderer.setSize( window.innerWidth, window.innerHeight);
|
|
|
renderer.setClearColor(0xbfe7ff);
|
|
@@ -99,24 +97,11 @@
|
|
|
|
|
|
shadowLight.position.set(150, 75, 150);
|
|
|
|
|
|
- shadowLight.castShadow = true;
|
|
|
- shadowLight.shadow.camera.left = -75;
|
|
|
- shadowLight.shadow.camera.right = 75;
|
|
|
- shadowLight.shadow.camera.top = 75;
|
|
|
- shadowLight.shadow.camera.bottom = -75;
|
|
|
- shadowLight.shadow.camera.near = 1;
|
|
|
- shadowLight.shadow.camera.far = 1000;
|
|
|
-
|
|
|
- shadowLight.shadow.mapSize.width = 1024;
|
|
|
- shadowLight.shadow.mapSize.height = 1024;
|
|
|
-
|
|
|
var shadowLight2 = shadowLight.clone();
|
|
|
- shadowLight2.castShadow = false;
|
|
|
shadowLight2.intensity = .2;
|
|
|
shadowLight2.position.set(-150, 75, -150);
|
|
|
|
|
|
var shadowLight3 = shadowLight.clone();
|
|
|
- shadowLight3.castShadow = false;
|
|
|
shadowLight3.intensity = .1;
|
|
|
shadowLight3.position.set(0, 125, 0);
|
|
|
|
|
@@ -125,11 +110,11 @@
|
|
|
scene.add(shadowLight2);
|
|
|
scene.add(shadowLight3);
|
|
|
|
|
|
- geomData.push(new THREE.SphereGeometry(1, 64, 64));
|
|
|
- geomData.push(new THREE.BoxGeometry(1, 1, 1,));
|
|
|
- geomData.push(new THREE.ConeGeometry(1, 1, 32));
|
|
|
- geomData.push(new THREE.TetrahedronGeometry(1));
|
|
|
- geomData.push(new THREE.TorusKnotGeometry(1, .4));
|
|
|
+ geomData.push( new THREE.SphereGeometry( 1, 64, 64 ) );
|
|
|
+ geomData.push( new THREE.BoxGeometry( 1, 1, 1 ) );
|
|
|
+ geomData.push( new THREE.ConeGeometry( 1, 1, 32 ) );
|
|
|
+ geomData.push( new THREE.TetrahedronGeometry( 1 ) );
|
|
|
+ geomData.push( new THREE.TorusKnotGeometry( 1, .4 ) );
|
|
|
|
|
|
var numShapes = 25;
|
|
|
group = new THREE.Group();
|