Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update lights #12

Open
mickel8 opened this issue Dec 19, 2024 · 0 comments
Open

Update lights #12

mickel8 opened this issue Dec 19, 2024 · 0 comments

Comments

@mickel8
Copy link

mickel8 commented Dec 19, 2024

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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant