diff --git a/components/calcModels.vue b/components/calcModels.vue index 8573bfe..7e5d45a 100644 --- a/components/calcModels.vue +++ b/components/calcModels.vue @@ -46,34 +46,6 @@ const loadAll = async () => { pointLight.value.position.x = pointLight.value.position.x * k pointLight.value.position.y = pointLight.value.position.y * k pointLight.value.position.z = pointLight.value.position.z * k - - const pbrTexture = await useTexture({ - map: '/texture/Grass004_2K-PNG/Grass004_2K-PNG_Color.png', - displacementMap: '/texture/Grass004_2K-PNG/Grass004_2K-PNG_Displacement.png', - // roughnessMap: '/texture/Grass004_2K-PNG/Grass004_2K-PNG_Roughness.png', - normalMap: '/texture/Grass004_2K-PNG/Grass004_2K-PNG_NormalDX.png', - aoMap: '/texture/Grass004_2K-PNG/Grass004_2K-PNG_AmbientOcclusion.png', - }) - const repeat = 10 - for (const key in pbrTexture) { - if (Object.prototype.hasOwnProperty.call(pbrTexture, key)) { - const key_p = key as keyof typeof pbrTexture - const element = pbrTexture[key_p] - if (element && element.wrapS) { - element.wrapS = RepeatWrapping - element.wrapT = RepeatWrapping - element.repeat.x = repeat - element.repeat.y = repeat - element.flipY = false - } - } - } - groundMaterial.value = Object.assign(groundMaterial.value, { - map: pbrTexture.map, - displacementMap: pbrTexture.displacementMap, - normalMap: pbrTexture.normalMap, - aoMap: pbrTexture.aoMap, - }) } const camera = ref("camera") diff --git a/components/header.vue b/components/header.vue index c832e1b..8f26552 100644 --- a/components/header.vue +++ b/components/header.vue @@ -24,7 +24,7 @@ const route = useRoute()