Skip to content

Commit 2d27f4b

Browse files
committed
Update example for Three.js and glTF Loader
1 parent a152f08 commit 2d27f4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/threejs/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function resize() {
5454
function init() {
5555
scene = new THREE.Scene();
5656

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

140141
controls = new THREE.OrbitControls( camera, renderer.domElement );
141142
controls.userPan = false;

0 commit comments

Comments
 (0)