mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 01:18:34 +00:00
Fixed Shader on new objects.
This commit is contained in:
1 parent
8ab3963288
commit
dbbaaae030
1 file changed
+2
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user