8000 Update lights · Issue #12 · janarosmonaliev/github-globe · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Update lights #12
Open
Open
@mickel8

Description

@mickel8

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0