Fixed Shader on new objects.

This commit is contained in:
Quicksticks-oss committed 2024-04-09 15:54:53 -04:00
1 parent 8ab3963288
commit dbbaaae030
1 file changed
+2 -1
+2 -1
View File
@@ -25,7 +25,8 @@ class Scene {
}
instantiate(name: string) {
let material = new THREE.MeshPhongMaterial({ color: 0xffffff });
let material = new THREE.MeshPhongMaterial({ color: 0xDACBCE });
material.shininess = 0.0;
let geometry;
if (name == "Box") {
geometry = new THREE.BoxGeometry(1, 1, 1);