|
@@ -1,17 +1,17 @@
|
|
|
-# usePamMouse
|
|
|
+# PamCameraMouse
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
-`<usePamMouse />` is a component that allow you to create easily the pam mouse camera effect. The camera will update automatically according to the mouse position, creating a beautiful nice effect
|
|
|
+`<PamCameraMouse />` is a component that allow you to create easily the pam mouse camera effect. The camera will update automatically according to the mouse position, creating a beautiful nice effect
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
-You only need import it and use it `<usePamMouse />` additionally you can pass two props, disabled and factor. Factor is a number to increase the movement range of the camera
|
|
|
+You only need import it and use it `<PamCameraMouse />` additionally you can pass two props, disabled and factor. Factor is a number to increase the movement range of the camera
|
|
|
|
|
|
```vue
|
|
|
<template>
|
|
|
<TresCanvas>
|
|
|
- <usePamMouse />
|
|
|
+ <PamCameraMouse />
|
|
|
<TresScene>
|
|
|
<Text3D text="TresJS" font="/fonts/FiraCodeRegular.json">
|
|
|
<TresMeshNormalMaterial />
|