瀏覽代碼

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>
+```