Spaces:
Running
Running
cutechicken
commited on
Commit
โข
6d9fb2e
1
Parent(s):
a4bd88b
Update game.js
Browse files
game.js
CHANGED
@@ -351,11 +351,10 @@ class Game {
|
|
351 |
groundTexture.wrapS = groundTexture.wrapT = THREE.RepeatWrapping;
|
352 |
groundTexture.repeat.set(25, 25); // ํ
์ค์ฒ ๋ฐ๋ณต ํ์ ๊ฐ์
|
353 |
|
354 |
-
// ์ฌ๋ง
|
355 |
-
const groundMaterial = new THREE.
|
356 |
map: groundTexture,
|
357 |
-
color:
|
358 |
-
emissive: 0x222222 // ์ฝ๊ฐ์ ์์ฒด ๋ฐ๊ด ์ถ๊ฐ
|
359 |
});
|
360 |
|
361 |
const ground = new THREE.Mesh(groundGeometry, groundMaterial);
|
|
|
351 |
groundTexture.wrapS = groundTexture.wrapT = THREE.RepeatWrapping;
|
352 |
groundTexture.repeat.set(25, 25); // ํ
์ค์ฒ ๋ฐ๋ณต ํ์ ๊ฐ์
|
353 |
|
354 |
+
// ์ฌ๋ง ์ฌ์ง์ MeshBasicMaterial๋ก ๋ณ๊ฒฝ
|
355 |
+
const groundMaterial = new THREE.MeshBasicMaterial({
|
356 |
map: groundTexture,
|
357 |
+
color: 0xDEB887 // ๋ ๋ฐ์ ๋ฒ ์ด์ง์
|
|
|
358 |
});
|
359 |
|
360 |
const ground = new THREE.Mesh(groundGeometry, groundMaterial);
|