MeshStandardMaterial
This commit is contained in:
parent
596a227eaf
commit
e89dcb8937
2
main.js
2
main.js
@ -108,7 +108,7 @@ for (let i = 0; i < maze.count; i++) {
|
|||||||
// Ground
|
// Ground
|
||||||
|
|
||||||
const groundGeometry = new THREE.BoxGeometry(mazeWidth, mazeWidth, 1)
|
const groundGeometry = new THREE.BoxGeometry(mazeWidth, mazeWidth, 1)
|
||||||
const groundMaterial = new THREE.MeshPhongMaterial({
|
const groundMaterial = new THREE.MeshStandardMaterial({
|
||||||
map: loader.load(
|
map: loader.load(
|
||||||
'img/angled-blocks-vegetation_albedo.png',
|
'img/angled-blocks-vegetation_albedo.png',
|
||||||
texture => {
|
texture => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user