Skip to content

Commit

Permalink
Update example for Three.js and glTF Loader
Browse files Browse the repository at this point in the history
  • Loading branch information
cx20 committed Jan 14, 2019
1 parent a152f08 commit 2d27f4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/threejs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function resize() {
function init() {
scene = new THREE.Scene();

hemispheric = new THREE.HemisphereLight( 0xffffff, 0x222222, 1.2 );
hemispheric = new THREE.HemisphereLight( 0xffffff, 0x222222, 3.0 );
scene.add(hemispheric);
/*
var ambient = new THREE.AmbientLight( 0xffffff, 0.3 );
Expand Down Expand Up @@ -136,6 +136,7 @@ function init() {
renderer.gammaFactor = 2.2;
renderer.setClearColor( 0xaaaaaa );
renderer.setPixelRatio( window.devicePixelRatio );
renderer.physicallyCorrectLights = true; // This will be required for matching the glTF spec.

controls = new THREE.OrbitControls( camera, renderer.domElement );
controls.userPan = false;
Expand Down

0 comments on commit 2d27f4b

Please sign in to comment.