فهرست منبع

docs: added example with cientos orbitcontrol

Alvaro 2 سال پیش
والد
کامیت
30ea05941f
1فایلهای تغییر یافته به همراه15 افزوده شده و 0 حذف شده
  1. 15 0
      docs/examples/orbit-controls.md

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

@@ -75,3 +75,18 @@ const { state } = useThree()
   </TresCanvas>
   </TresCanvas>
 </template>
 </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>
+```