bx-865-apps #1

Merged
ksenia_mikhailova merged 140 commits from bx-865-apps into main 2024-06-27 15:03:27 +03:00
1 changed files with 3 additions and 4 deletions
Showing only changes of commit 4ed15f4696 - Show all commits

View File

@ -1,9 +1,8 @@
<script setup lang="ts">
import { onMounted, reactive, ref } from 'vue';
import { reactive, ref } from 'vue';
import { Object3D, Vector3 } from 'three';
import { TresCanvas, useRenderLoop } from '@tresjs/core';
import { vLightHelper } from '@tresjs/core'
import { CameraControls, GlobalAudio, useGLTF, useProgress } from '@tresjs/cientos'
import { CameraControls, useGLTF, useProgress } from '@tresjs/cientos'
const minPan = new Vector3(-10, 1, -5);
const maxPan = new Vector3(5, 1, 5);
@ -27,7 +26,7 @@ const controlsState = reactive({
})
const { hasFinishLoading, progress } = await useProgress()
const { scene: spot_light } = await useGLTF('/Spot_light.glb')
const { scene: spot_light } = await useGLTF('/spot_light.glb')
const spot_light_item = spot_light.children[0]
const spot_light_target = ref()