diff --git a/front/src/components/Promo/main.vue b/front/src/components/Promo/main.vue index 36fc145..2b36bdd 100644 --- a/front/src/components/Promo/main.vue +++ b/front/src/components/Promo/main.vue @@ -2,10 +2,10 @@ import { reactive } from 'vue'; import { Vector3 } from 'three'; import { TresCanvas } from '@tresjs/core'; -import { CameraControls, useProgress } from '@tresjs/cientos' +import { vLightHelper } from '@tresjs/core' +import { CameraControls, useGLTF, useProgress } from '@tresjs/cientos' import sunset from '../../assets/promo/models/sunset.hdr' -console.log(sunset) const minPan = new Vector3(-10, 1, -5); const maxPan = new Vector3(5, 1, 5); @@ -31,7 +31,8 @@ const controlsState = reactive({ const { hasFinishLoading, progress } = await useProgress() - +const { scene: spot_light } = await useGLTF('/Spot_light.glb') +const spot_light_item = spot_light.children[0]