Skip to content

Commit

Permalink
Mesh shadows
Browse files Browse the repository at this point in the history
Temporary update
  • Loading branch information
jasonsturges committed Nov 18, 2024
1 parent 5bedcf4 commit fefe7e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/models/science/TestTubeRack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class TestTubeRack extends Group {
});
const rack = new Mesh(rackGeometry, rackMaterial);
rack.position.y = 0.5;
rack.castShadow = true;

// Test tube properties
const testTubeGeometry = new TestTubeGeometry(0.1, 0.1, 1, 16);
Expand All @@ -33,6 +34,7 @@ class TestTubeRack extends Group {
const testTube = new Mesh(testTubeGeometry, glassMaterial);
const xPosition = (i - (count - 1) / 2) * 0.8;
testTube.position.set(xPosition, 1, 0);
testTube.castShadow = true;

// Liquid geometry and material with unique color
const liquidGeometry = new TestTubeGeometry(0.099, 0.099, 0.5, 16, false);
Expand Down

0 comments on commit fefe7e6

Please sign in to comment.