Skip to content

Commit

Permalink
Examples: Use linear workflow for examples with ROME models.
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed Mar 2, 2019
1 parent 6b88665 commit 564fa60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions examples/webgl_morphtargets_horse.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@
renderer = new THREE.WebGLRenderer();
renderer.setPixelRatio( window.devicePixelRatio );
renderer.setSize( window.innerWidth, window.innerHeight );

renderer.gammaOutput = true;
renderer.gammaFactor = 2.2;

container.appendChild(renderer.domElement);

//
Expand Down
4 changes: 3 additions & 1 deletion examples/webgl_shadowmap.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@
renderer.setSize( SCREEN_WIDTH, SCREEN_HEIGHT );
container.appendChild( renderer.domElement );

renderer.gammaOutput = true;
renderer.gammaFactor = 2.2;
renderer.autoClear = false;

//
Expand Down Expand Up @@ -195,7 +197,7 @@
// GROUND

var geometry = new THREE.PlaneBufferGeometry( 100, 100 );
var planeMaterial = new THREE.MeshPhongMaterial( { color: 0xffdd99 } );
var planeMaterial = new THREE.MeshPhongMaterial( { color: 0xffb851 } );

var ground = new THREE.Mesh( geometry, planeMaterial );

Expand Down

0 comments on commit 564fa60

Please sign in to comment.