thepaperpilot
411b2ac293
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 58s
That'll make using it in the homepage easier
14 lines
364 B
Vue
14 lines
364 B
Vue
<template>
|
|
<TresOrbitControls
|
|
v-if="renderer"
|
|
:args="[camera, renderer?.domElement]"
|
|
/>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { extend, useTresContext } from '@tresjs/core';
|
|
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
|
|
|
|
extend({ OrbitControls });
|
|
const { camera, renderer } = useTresContext();
|
|
</script>
|