Skip to content

Commit

Permalink
feat: enhance lighting setup for better visualization
Browse files Browse the repository at this point in the history
Co-Authored-By: Benjamin Bolte <[email protected]>
  • Loading branch information
devin-ai-integration[bot] and codekansas committed Dec 11, 2024
1 parent d55e612 commit 8325dec
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/components/robot/robotRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,16 @@ const RobotRenderer: React.FC = () => {
animate();
});

const light = new THREE.AmbientLight(0x404040);
scene.add(light);
const ambientLight = new THREE.AmbientLight(0xffffff, 0.3);
scene.add(ambientLight);

const directionalLight = new THREE.DirectionalLight(0xffffff, 0.5);
directionalLight.position.set(1, 1, 1).normalize();
scene.add(directionalLight);
const mainLight = new THREE.DirectionalLight(0xffffff, 2.0);
mainLight.position.set(5, 5, 5);
scene.add(mainLight);

const fillLight = new THREE.DirectionalLight(0xffffff, 0.8);
fillLight.position.set(-5, 2, -5);
scene.add(fillLight);

camera.position.z = 5;

Expand Down

0 comments on commit 8325dec

Please sign in to comment.