1234567891011121314151617181920212223 |
- <script setup lang="ts">
- import { useTresContext } from '@tresjs/core'
- import { OrbitControls } from '@tresjs/cientos'
- import { onMounted } from 'vue'
- /* const { renderingTimes } = useState() */
- const state = useTresContext()
- function manualInvalidate() {
- state.invalidate()
- }
- onMounted(() => {
- manualInvalidate()
- })
- </script>
- <template>
- <OrbitControls
- @change="manualInvalidate"
- />
- </template>
|