MeshStandardMaterial

This commit is contained in:
Adrien MALINGREY 2023-06-28 01:07:52 +02:00
parent 596a227eaf
commit e89dcb8937

View File

@ -108,7 +108,7 @@ for (let i = 0; i < maze.count; i++) {
// Ground
const groundGeometry = new THREE.BoxGeometry(mazeWidth, mazeWidth, 1)
const groundMaterial = new THREE.MeshPhongMaterial({
const groundMaterial = new THREE.MeshStandardMaterial({
map: loader.load(
'img/angled-blocks-vegetation_albedo.png',
texture => {