Merge branch 'bx-1047-main' of https://git.svs-tech.pro/ksenia_mikhailova/mns-mini-zabor into bx-1047-main

This commit is contained in:
commit 2c76ef8350
2 changed files with 2 additions and 3 deletions

View File

@ -23,7 +23,6 @@ const cameraStat = reactive({
}) })
const pointLight = ref() const pointLight = ref()
const pointLight2 = ref()
const loadAll = async () => { const loadAll = async () => {
const { scene: light } = await useGLTF('/models_light/zabor_so_svetom.glb') const { scene: light } = await useGLTF('/models_light/zabor_so_svetom.glb')
pointLight.value = light.children[2] pointLight.value = light.children[2]
@ -35,7 +34,7 @@ const loadAll = async () => {
pointLight.value.shadow.mapSize.x = 512 * j pointLight.value.shadow.mapSize.x = 512 * j
pointLight.value.shadow.mapSize.y = 512 * j pointLight.value.shadow.mapSize.y = 512 * j
const k = 5 const k = 3
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

View File

@ -63,7 +63,7 @@ onMounted(() => {
Загрузка 3D модели Загрузка 3D модели
</div> </div>
</template> </template>
<TresCanvas height="600" preset="realistic" render-mode="on-demand"> <TresCanvas height="600" preset="realistic">
<TresPerspectiveCamera :position="[-7, 2, 4]" ref="camera" /> <TresPerspectiveCamera :position="[-7, 2, 4]" ref="camera" />
<OrbitControls v-bind="controlsState" ref="controls" make-default /> <OrbitControls v-bind="controlsState" ref="controls" make-default />
<Suspense> <Suspense>