diff --git a/front/.env.development b/front/.env.development index 3bcc289..d4c57fd 100644 --- a/front/.env.development +++ b/front/.env.development @@ -1,3 +1,3 @@ VITE_SERVER_URL='https://demo.kustarshina.ru' VITE_IMAGE_URL='https://demo.kustarshina.ru' -VITE_SERVER_URL='http://localhost:8000' \ No newline at end of file +# VITE_SERVER_URL='http://localhost:8000' \ No newline at end of file diff --git a/front/src/components/Promo/load_models.vue b/front/src/components/Promo/load_models.vue index 291ece7..d274729 100644 --- a/front/src/components/Promo/load_models.vue +++ b/front/src/components/Promo/load_models.vue @@ -26,6 +26,7 @@ const sidebar_scene = usePromoScene() const { controls, camera, scene, raycaster } = useTresContext() const { seekByName, seekAllByName } = useSeek() const envVars = reactive({}) as { hdr_gainmap?: string, hdr_json?: string, hdr_webp?: string } +const tiltShift = reactive({}) as { focus: number, aperture: number, maxblur: number } // renderer.value.capabilities.maxTextures = 4 // renderer.value.capabilities.maxTextureSize = 512 @@ -39,6 +40,11 @@ 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.5 + tiltShift.focus = raw_data.max_distance * 0.5 + tiltShift.aperture = 15 + tiltShift.maxblur = 1 + const data = raw_data.elements if (!controls.value) return; @@ -191,7 +197,7 @@ watch(() => sidebar_scene.list, () => {