Procházet zdrojové kódy

chore: fix catalogue test

alvarosabu před 2 roky
rodič
revize
c088c502a0
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      playground/src/components/TheFirstScene.vue

+ 2 - 1
playground/src/components/TheFirstScene.vue

@@ -1,11 +1,12 @@
 <script setup lang="ts">
 import { TresCanvas } from '@tresjs/core'
+import { Vector3 } from 'three'
 </script>
 
 <template>
   <TresCanvas ref="context" clear-color="#82DBC5" window-size>
     <TresPerspectiveCamera />
-    <TresMesh>
+    <TresMesh :position="[1, 2, 3]" :scale="new Vector3(2, 2, 2)" :rotation="{ x: 1, y: 1, z: 1 }">
       <TresTorusGeometry :args="[1, 0.5, 16, 32]" />
       <TresMeshBasicMaterial color="orange" />
     </TresMesh>