Skip to content

Commit

Permalink
Improve README
Browse files Browse the repository at this point in the history
  • Loading branch information
9inpachi committed Sep 22, 2024
1 parent 0b9d588 commit 16bee57
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Demo: <https://ps3fsk.csb.app>
- [Usage](#usage)
- [Vanilla](#vanilla)
- [React Three Fiber](#react-three-fiber)
- [Configuration](#configuration)
- [Configuration Options](#configuration-options)

## Setup

Expand Down Expand Up @@ -106,7 +106,7 @@ createRoot(document.getElementById("root")).render(
);
```

## Configuration
## Configuration Options

The controls can be configured by setting the following properties.

Expand All @@ -119,7 +119,7 @@ The controls can be configured by setting the following properties.
| `zoomSpeed: number` | 0.05 | Sets the speed of zooming. |
| `panSpeed: number` | 0.1 | Sets the speed of panning (moving the view). |

Configuring in Vanilla.
Setting the options in vanilla JavaScript.

```js
const panoramaControls = new PanoramaControls(camera, renderer.domElement);
Expand All @@ -131,7 +131,7 @@ panoramaControls.zoomSpeed = 0.025;
panoramaControls.panSpeed = 0.05;
```

Configuring in React Three Fiber.
Setting the options in React Three Fiber.

```jsx
<PanoramaControls
Expand Down

0 comments on commit 16bee57

Please sign in to comment.