combine ao roughness and metalness maps in one file for ground material

This commit is contained in:
Adrien MALINGREY 2023-11-18 16:31:40 +01:00
parent af8fdfd30e
commit eb5b39529a
2 changed files with 3 additions and 3 deletions

View File

@ -145,14 +145,14 @@ const groundMaterial = new THREE.MeshStandardMaterial({
} }
), ),
aoMap: loader.load( aoMap: loader.load(
'textures/angled-blocks-vegetation/ao.png', 'textures/angled-blocks-vegetation/ao-roughness-metalness.png',
texture => { texture => {
texture.wrapS = texture.wrapT = THREE.RepeatWrapping texture.wrapS = texture.wrapT = THREE.RepeatWrapping
texture.repeat.set(mazeWidth / 2, mazeWidth / 2) texture.repeat.set(mazeWidth / 2, mazeWidth / 2)
} }
), ),
metalnessMap: loader.load( metalnessMap: loader.load(
'textures/angled-blocks-vegetation/metallic.png', 'textures/angled-blocks-vegetation/ao-roughness-metalness.png',
texture => { texture => {
texture.wrapS = texture.wrapT = THREE.RepeatWrapping texture.wrapS = texture.wrapT = THREE.RepeatWrapping
texture.repeat.set(mazeWidth / 2, mazeWidth / 2) texture.repeat.set(mazeWidth / 2, mazeWidth / 2)
@ -166,7 +166,7 @@ const groundMaterial = new THREE.MeshStandardMaterial({
} }
), ),
roughnessMap: loader.load( roughnessMap: loader.load(
'textures/angled-blocks-vegetation/roughness.png', 'textures/angled-blocks-vegetation/ao-roughness-metalness.png',
texture => { texture => {
texture.wrapS = texture.wrapT = THREE.RepeatWrapping texture.wrapS = texture.wrapT = THREE.RepeatWrapping
texture.repeat.set(mazeWidth / 2, mazeWidth / 2) texture.repeat.set(mazeWidth / 2, mazeWidth / 2)

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB