Skip to content

Commit

Permalink
Add a simple README
Browse files Browse the repository at this point in the history
  • Loading branch information
9inpachi committed Sep 8, 2024
1 parent 9093706 commit 76da4b9
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
File renamed without changes.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Three Panorama Controls

Panorama controls for three.js.

## Setup

Install the package.

```sh
npm install three-panorama-controls
```

## Usage

The package can be used both in vanilla JavaScript and with React Three Fiber.

### Vanilla

```ts
import { PanoramaControls } from "three-panorama-controls";

// ...

const controls = new PanoramaControls(camera, renderer.domElement);
```

### React Three Fiber

```jsx
import { PanoramaControls } from "three-panorama-controls/react";

export const SampleComponent = () => <PanoramaControls makeDefault />;
```

0 comments on commit 76da4b9

Please sign in to comment.