diff --git a/front/public/download.png b/front/public/download.png new file mode 100644 index 0000000..5f806d8 Binary files /dev/null and b/front/public/download.png differ diff --git a/front/public/ground_displacement.jpg b/front/public/ground_displacement.jpg new file mode 100644 index 0000000..a99db5f Binary files /dev/null and b/front/public/ground_displacement.jpg differ diff --git a/front/public/picture_02.jpg b/front/public/picture_02.jpg new file mode 100644 index 0000000..af42be2 Binary files /dev/null and b/front/public/picture_02.jpg differ diff --git a/front/src/components/Promo/load_models.vue b/front/src/components/Promo/load_models.vue index 8c2ea1f..c1849af 100644 --- a/front/src/components/Promo/load_models.vue +++ b/front/src/components/Promo/load_models.vue @@ -5,7 +5,7 @@ import { PlaneGeometry, SpriteMaterial, TextureLoader, Vector2, Vector3, } from 'three'; -import { useTresContext, useSeek, useRenderLoop } from '@tresjs/core'; +import { useTresContext, useSeek, useRenderLoop, useTexture } from '@tresjs/core'; import { useGLTF } from '@tresjs/cientos' import Env from './env.vue' @@ -40,7 +40,7 @@ const loadModels = async () => { envVars.hdr_json = raw_data.hdr_json ? `${IMAGE_URL}/${raw_data.hdr_json}` : undefined envVars.hdr_webp = raw_data.hdr_webp ? `${IMAGE_URL}/${raw_data.hdr_webp}` : undefined - tiltShift.focus = raw_data.max_distance * 0.33 + tiltShift.focus = raw_data.min_distance * 0.75 tiltShift.aperture = 10 tiltShift.maxblur = 1 @@ -183,6 +183,15 @@ const clickEvent = (event: MouseEvent) => { } } +const groundTexture = await useTexture({ + displacementMap: '/ground_displacement.jpg', +}) +const ground = reactive({ + color: props.clearColor, + displacementMap: groundTexture.displacementMap, + displacementScale: 50, + roughness: 100 +}) watch(() => sidebar_scene.list, () => { sidebar_scene.list.forEach(element => { const el = seekByName(scene.value, element.name) @@ -205,5 +214,9 @@ watch(() => sidebar_scene.list, () => { + + + + \ No newline at end of file diff --git a/front/src/components/Promo/main.vue b/front/src/components/Promo/main.vue index 40dc55f..65c8f65 100644 --- a/front/src/components/Promo/main.vue +++ b/front/src/components/Promo/main.vue @@ -4,7 +4,7 @@ import type { Ref } from 'vue' import { RouterLink, useRoute } from 'vue-router'; import { Vector3 } from 'three'; -import { TresCanvas } from '@tresjs/core'; +import { TresCanvas, useTexture } from '@tresjs/core'; import { OrbitControls } from '@tresjs/cientos' import '@tresjs/leches/styles' @@ -63,13 +63,10 @@ const clearColor = 'steelBlue' - + - - - - - +