Skip to content

Commit

Permalink
setting the color
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Jul 29, 2024
1 parent 0d0e5e8 commit 38f7cbd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,8 @@ public MeshView createGridMesh(int width, int height, int cellSize) {
MeshView meshView = new MeshView(mesh);

// Set material properties for thin lines
PhongMaterial material = new PhongMaterial(Color.WHITE);
PhongMaterial material = new PhongMaterial();
material.setDiffuseColor(Color.BLACK);
meshView.setMaterial(material);

// Make lines appear thin
Expand Down

0 comments on commit 38f7cbd

Please sign in to comment.