Skip to content

Commit a7b5a26

Browse files
committed
Improved webgl_postprocessing_ssao example.
1 parent 37d4274 commit a7b5a26

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/webgl_postprocessing_ssao.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,16 @@
8686

8787
}
8888

89-
camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 100, 700 );
89+
camera = new THREE.PerspectiveCamera( 65, window.innerWidth / window.innerHeight, 100, 700 );
9090
camera.position.z = 500;
9191

9292
scene = new THREE.Scene();
9393
scene.background = new THREE.Color( 0xa0a0a0 );
9494

95-
group = new THREE.Object3D();
95+
group = new THREE.Group();
9696
scene.add( group );
9797

98-
var geometry = new THREE.BoxBufferGeometry( 10, 10, 10 );
98+
var geometry = new THREE.IcosahedronBufferGeometry( 5, 3 );
9999
for ( var i = 0; i < 200; i ++ ) {
100100

101101
var material = new THREE.MeshBasicMaterial();
@@ -111,7 +111,7 @@
111111
mesh.rotation.y = Math.random();
112112
mesh.rotation.z = Math.random();
113113

114-
mesh.scale.x = mesh.scale.y = mesh.scale.z = Math.random() * 10 + 1;
114+
mesh.scale.setScalar( Math.random() * 10 + 1 );
115115
group.add( mesh );
116116

117117
}

0 commit comments

Comments
 (0)