1
0

RenderingLogger.vue 412 B

1234567891011121314151617181920212223
  1. <script setup lang="ts">
  2. import { useTresContext } from '@tresjs/core'
  3. import { OrbitControls } from '@tresjs/cientos'
  4. import { onMounted } from 'vue'
  5. /* const { renderingTimes } = useState() */
  6. const state = useTresContext()
  7. function manualInvalidate() {
  8. state.invalidate()
  9. }
  10. onMounted(() => {
  11. manualInvalidate()
  12. })
  13. </script>
  14. <template>
  15. <OrbitControls
  16. @change="manualInvalidate"
  17. />
  18. </template>