github-globe icon indicating copy to clipboard operation
github-globe copied to clipboard

Update lights

Open mickel8 opened this issue 1 year ago • 0 comments

For those who try to run this project using the newest three and tree-globe deps

    "three": "^0.171.0",
    "three-globe": "^2.37.5",

I had to update light values. These settings gave something similar to the original look:

    // Setup camera
   var dLight = new THREE.DirectionalLight(0xffffff, 10);
   dLight.position.set(-800, 2000, 400);
   camera.add(dLight);

   var dLight1 = new THREE.DirectionalLight(0x7982f6, 5);
   dLight1.position.set(-200, 500, 200);
   camera.add(dLight1);

   var dLight2 = new THREE.PointLight(0x8566cc, 15, 0, 0);
   dLight2.position.set(-200, 500, 200);
   camera.add(dLight2);

mickel8 avatar Dec 19 '24 17:12 mickel8