Skip to content

Commit

Permalink
Update globe.js
Browse files Browse the repository at this point in the history
  • Loading branch information
inxilpro committed Nov 16, 2024
1 parent a5d31dc commit 7e83600
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/js/globe.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Globe = new ThreeGlobe()

// Setup renderer
const renderer = new THREE.WebGLRenderer({
alpha: true,
// alpha: true,
antialias: true,
});
renderer.setPixelRatio(window.devicePixelRatio);
Expand All @@ -40,7 +40,7 @@ camera.aspect = node.clientWidth / node.clientHeight;
camera.updateProjectionMatrix();
camera.position.z = 150;

console.log({ debug: { Globe, renderer, scene, camera }});
window.__debug__ = { Globe, renderer, scene, camera };

// Add camera controls
// const tbControls = new TrackballControls(camera, renderer.domElement);
Expand Down Expand Up @@ -88,7 +88,7 @@ function tick(timestamp) {
tick_count = Math.ceil(fps * seconds);
point_index = data.length <= (point_index + 1) ? 0 : point_index + 1;
current_step = 0;
console.log({ item: data[point_index], fps });
// console.log({ item: data[point_index], fps });
}
}

Expand Down

0 comments on commit 7e83600

Please sign in to comment.