Forráskód Böngészése

docs: added example with cientos orbitcontrol

Alvaro 2 éve
szülő
commit
30ea05941f
1 módosított fájl, 15 hozzáadás és 0 törlés
  1. 15 0
      docs/examples/orbit-controls.md

+ 15 - 0
docs/examples/orbit-controls.md

@@ -75,3 +75,18 @@ const { state } = useThree()
   </TresCanvas>
 </template>
 ```
+
+## OrbitControls from `cientos`
+
+Here is where the fancy part begins. The `cientos` package provides a component called `<OrbitControls />` that is a wrapper of the `OrbitControls` from the `three-stdlib` module.
+
+The nicest part? You don't need to extend the catalogue or pass any arguments. It just works.
+
+```vue
+<template>
+  <TresCanvas shadows alpha>
+    <OrbitControls />
+    <TresScene> ... </TresScene>
+  </TresCanvas>
+</template>
+```