Pārlūkot izejas kodu

fix(core): fix demo app

alvarosabu 2 gadi atpakaļ
vecāks
revīzija
918f1d8ef6
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      packages/tres/src/components/TheBasic.vue

+ 3 - 3
packages/tres/src/components/TheBasic.vue

@@ -18,14 +18,14 @@ const state = reactive({
 
 const sphereRef = ref()
 
-/* const { onLoop } = useRenderLoop()
+const { onLoop } = useRenderLoop()
 
 onLoop(({ elapsed }) => {
   sphereRef.value.position.y += Math.sin(elapsed * 0.01) * 0.1
-}) */
+})
 </script>
 <template>
-  <TresCanvas v-bind="state" physically-correct-lights>
+  <TresCanvas v-bind="state">
     <TresPerspectiveCamera :position="[5, 5, 5]" :fov="45" :near="0.1" :far="1000" :look-at="[-8, 3, -3]" />
     <OrbitControls make-default />
     <TresScene>