canvas on demand
Deploy / build_and_push_images (push) Successful in 1m26s Details
Deploy / deploy_to_server_dev (push) Successful in 31s Details

This commit is contained in:
Kseninia Mikhaylova 2024-07-23 16:04:21 +03:00
parent f0210f60ea
commit 1075c0d443
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ watch([section_count, extra_section], () => {
</div> </div>
</template> </template>
<Loader /> <Loader />
<TresCanvas preset="realistic"> <TresCanvas>
<TresPerspectiveCamera v-bind="cameraStat" ref="camera" /> <TresPerspectiveCamera v-bind="cameraStat" ref="camera" />
<OrbitControls v-bind="controlsState" make-default /> <OrbitControls v-bind="controlsState" make-default />
<TresGroup :position-x="Math.min(section_count, max_size) * fence_section * -1" :position-y="-3"> <TresGroup :position-x="Math.min(section_count, max_size) * fence_section * -1" :position-y="-3">

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">
<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>