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

This commit is contained in:
adrien committed 2023-11-18 16:31:40 +01:00
1 parent af8fdfd30e
commit eb5b39529a
2 files changed
+3 -3

No files matched your search

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

After

Width:  |  Height:  |  Size: 2.3 MiB