mns-mini-zabor/components/calcModels.vue

37 lines
1.0 KiB
Vue

<script setup lang="ts">
import { TresCanvas } from '@tresjs/core'
import { OrbitControls, useProgress, Environment } from '@tresjs/cientos'
const controlsState = reactive({
minDistance: 5,
maxDistance: 15,
enablePan: false,
// enableZoom: false,
maxPolarAngle: (Math.PI / 2) - 0.2,
// maxZoom: 2,
// minZoom: 1,
})
</script>
<template>
<div class="container min-w-full relative">
<Loader />
<TresCanvas shadows>
<TresPerspectiveCamera :position="[8, 2, -4]" />
<OrbitControls v-bind="controlsState" make-default />
<Suspense>
<Environment files='/hdrmaps/kloppenheim_06_4k.hdr' :background="true" />
</Suspense>
<Suspense>
<ModelParametric />
</Suspense>
<TresDirectionalLight :position="[80, 70, 60]" :intensity="10" color="#fdf5ca" cast-shadow />
</TresCanvas>
</div>
</template>
<style scoped>
.container {
height: 600px;
display: block;
}
</style>