Spaces:
Running
Running
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);
|