Production #13
|
@ -46,34 +46,6 @@ const loadAll = async () => {
|
||||||
pointLight.value.position.x = pointLight.value.position.x * k
|
pointLight.value.position.x = pointLight.value.position.x * k
|
||||||
pointLight.value.position.y = pointLight.value.position.y * k
|
pointLight.value.position.y = pointLight.value.position.y * k
|
||||||
pointLight.value.position.z = pointLight.value.position.z * 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")
|
const camera = ref("camera")
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ const route = useRoute()
|
||||||
<div class="menu">
|
<div class="menu">
|
||||||
<template v-for="item in pagesData">
|
<template v-for="item in pagesData">
|
||||||
<NuxtLink :to="item.external_link || ((route.name == 'index' ? '' : '/') + `#${item.slug}`)"
|
<NuxtLink :to="item.external_link || ((route.name == 'index' ? '' : '/') + `#${item.slug}`)"
|
||||||
:target="item.external_link ? '_blank' : '_self'" @click="scrollToAnchor(item.slug)">
|
:target="item.external_link ? '_blank' : '_self'" @click.native="scrollToAnchor(item.slug)" event="">
|
||||||
{{ item.menu_title }}
|
{{ item.menu_title }}
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
|
|
Before Width: | Height: | Size: 2.0 MiB |
|
@ -1,42 +0,0 @@
|
||||||
<?xml version="1.0"?>
|
|
||||||
<materialx version="1.38" fileprefix="./">
|
|
||||||
<standard_surface ypos="-1.879310" name="Grass004_2K_PNG_StandardSurface" type="surfaceshader" xpos="6.159420">
|
|
||||||
<input name="specular" type="float" value="0" />
|
|
||||||
<input name="coat" type="float" value="1" />
|
|
||||||
<input name="coat_color" type="color3" value="1, 1, 1" />
|
|
||||||
<input name="base" type="float" value="1" />
|
|
||||||
<input name="base_color" type="color3" nodename="Grass004_2K_PNG_Color" />
|
|
||||||
<input name="normal" type="vector3" nodename="normalmap" />
|
|
||||||
<input name="coat_normal" type="vector3" nodename="normalmap" />
|
|
||||||
<input name="specular_roughness" type="float" nodename="Grass004_2K_PNG_Roughness" />
|
|
||||||
<input name="coat_roughness" type="float" nodename="Grass004_2K_PNG_Roughness" />
|
|
||||||
</standard_surface>
|
|
||||||
<surfacematerial ypos="0.000000" name="Grass004_2K_PNG" type="material" xpos="8.695652">
|
|
||||||
<input name="surfaceshader" type="surfaceshader" nodename="Grass004_2K_PNG_StandardSurface" />
|
|
||||||
<input name="displacementshader" type="displacementshader" nodename="displacement" />
|
|
||||||
</surfacematerial>
|
|
||||||
<tiledimage ypos="-3.103448" name="Grass004_2K_PNG_Color" type="color3" xpos="3.623188">
|
|
||||||
<input colorspace="srgb_texture" name="file" type="filename" value="Grass004_2K-PNG_Color.png" />
|
|
||||||
<input name="uvtiling" type="vector2" value="1.0, 1.0" />
|
|
||||||
</tiledimage>
|
|
||||||
<tiledimage ypos="5.163793" name="Grass004_2K_PNG_Displacement" type="float" xpos="3.623188">
|
|
||||||
<input name="file" type="filename" value="Grass004_2K-PNG_Displacement.png" />
|
|
||||||
<input name="uvtiling" type="vector2" value="1.0, 1.0" />
|
|
||||||
</tiledimage>
|
|
||||||
<displacement ypos="1.879310" name="displacement" type="displacementshader" xpos="6.159420">
|
|
||||||
<input name="displacement" type="float" nodename="Grass004_2K_PNG_Displacement" />
|
|
||||||
<input name="scale" type="float" value="1.0" />
|
|
||||||
</displacement>
|
|
||||||
<tiledimage ypos="0.879310" name="Grass004_2K_PNG_NormalGL" type="vector3" xpos="1.086957">
|
|
||||||
<input name="file" type="filename" value="Grass004_2K-PNG_NormalGL.png" />
|
|
||||||
<input name="uvtiling" type="vector2" value="1.0, 1.0" />
|
|
||||||
</tiledimage>
|
|
||||||
<normalmap ypos="3.586207" name="normalmap" type="vector3" xpos="3.623188">
|
|
||||||
<input name="in" type="vector3" nodename="Grass004_2K_PNG_NormalGL" />
|
|
||||||
<input name="scale" type="float" value="1.0" />
|
|
||||||
</normalmap>
|
|
||||||
<tiledimage ypos="-0.413793" name="Grass004_2K_PNG_Roughness" type="float" xpos="3.623188">
|
|
||||||
<input name="file" type="filename" value="Grass004_2K-PNG_Roughness.png" />
|
|
||||||
<input name="uvtiling" type="vector2" value="1.0, 1.0" />
|
|
||||||
</tiledimage>
|
|
||||||
</materialx>
|
|
Before Width: | Height: | Size: 3.3 MiB |
Before Width: | Height: | Size: 8.0 MiB |
Before Width: | Height: | Size: 7.5 MiB |
Before Width: | Height: | Size: 23 MiB |
Before Width: | Height: | Size: 23 MiB |
Before Width: | Height: | Size: 3.1 MiB |