Skip to content

Commit

Permalink
GLTFLoader: Add grid+gammaOutput to example.
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed Jan 7, 2018
1 parent 4e9fac6 commit d40f480
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion examples/webgl_loader_gltf.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@
plane.receiveShadow = true;
scene.add(plane);

var grid = new THREE.GridHelper( 20, 20, 0x000000, 0x000000 );
grid.position.y = -0.99;
grid.material.opacity = 0.2;
grid.material.transparent = true;
scene.add( grid );

// envmap
var path = 'textures/cube/Park2/';
var format = '.jpg';
Expand Down Expand Up @@ -122,9 +128,10 @@

} );

renderer = new THREE.WebGLRenderer();
renderer = new THREE.WebGLRenderer( { antialias: true } );
renderer.setPixelRatio( window.devicePixelRatio );
renderer.setSize( window.innerWidth, window.innerHeight );
renderer.gammaOutput = true;
renderer.shadowMap.enabled = true;
renderer.shadowMap.type = THREE.PCFSoftShadowMap;
container.appendChild( renderer.domElement );
Expand Down

0 comments on commit d40f480

Please sign in to comment.