Skip to content

Commit 26cd709

Browse files
authored
Changed material for stars to whiten them
Changed material in function addStar() from MeshStandardMaterial to MeshBasicMaterial to prevent stars to be displayed gray instead of white. See issue: fireship-io#20
1 parent 21f4c09 commit 26cd709

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ scene.add(pointLight, ambientLight);
4545

4646
function addStar() {
4747
const geometry = new THREE.SphereGeometry(0.25, 24, 24);
48-
const material = new THREE.MeshStandardMaterial({ color: 0xffffff });
48+
const material = new THREE.MeshBasicMaterial({ color: 0xffffff });
4949
const star = new THREE.Mesh(geometry, material);
5050

5151
const [x, y, z] = Array(3)

0 commit comments

Comments
 (0)