Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Sp0ne/r3f-simple-mask-move

Simple Experience Three.js with R3F and Mask / Stencil
https://github.com/Sp0ne/r3f-simple-mask-move

r3f react react-three-fiber threejs vitejs

Last synced: 4 months ago
JSON representation

Simple Experience Three.js with R3F and Mask / Stencil

Awesome Lists containing this project

README

        

# r3f-simple-mask-move

_Simple Experience Three.js with R3F and Mask / Stencil._

๐Ÿงช **v0.1.0** **ใ€ข**
๐Ÿ–ฅ [Live Demo](https://sp0ne.github.io/r3f-simple-mask-move/) **ใ€ข** [Codesandbox](https://codesandbox.io/s/r3f-mask-move-mouse-ttmtem)

---

![Screen Starter](public/screenshots/r3f-mask-mouse.gif)

---

## ๐Ÿ’พ Installation

๐Ÿ‘‡ Install the following packages

```shell
yarn
```

## ๐Ÿฅ‘ Usage ใ€ข Get Started

๐Ÿ‘‡ Start or Build the application

```shell
yarn start
# Or
yarn preview
```

๐Ÿ‘‰ Go to [http://localhost:3000/r3f-simple-mask-move/](http://localhost:3000/r3f-simple-mask-move/)

## ๐Ÿ’พ Code Clean

```shell
yarn lint # Run linter global
yarn format # Run prettier format
```

## ๐Ÿš€ Deploy on Gh-pages

```shell
yarn build && yarn deploy
# yarn deploy -- -m "Deploy to GitHub Pages"
```

### โš™๏ธ Config vite โšก

Change config in `vite.config.vue` if you want:

```javascript
export default defineConfig({
base: '/r3f-simple-mask-move/', // Adapt it ! (just for GH-PAGES)
server: {
port: 3000 // Default 3000: Adapt it !
}
// ...stuff...
})
```

Reminder ๐Ÿ“ฆ:

```bash
# update dependencies. need existing yarn.lock file
yarn upgrade-interactive --latest
```

---

## ๐Ÿ’พ Ecosystem

- Node.js [**v16.0 min**](https://nodejs.org/en/) ๐Ÿ“ฆ
- Three.js [**v0.145.0**](https://github.com/mrdoob/three.js/) ๐Ÿ“ฆ
- Powered with [Vite](https://vite.dev/) ๐Ÿ“ฆ
- [vite-plugin-glsl](https://github.com/UstymUkhman/vite-plugin-glsl) Simple Shaders support (glsl) ๐ŸŽจ
- [@react-three/fiber](https://github.com/pmndrs/react-three-fiber) React renderer for threejs
- [@react-three/drei](https://github.com/pmndrs/drei) useful helpers for react-three-fiber
- [react-spring](https://github.com/pmndrs/react-spring) a spring-physics-based animation library
- [leva`](https://github.com/pmndrs/leva) create GUI controls in seconds

---

> ๐Ÿ’ปโค> by [๐Ÿง™โ€โ™‚@Sp0ne][vinces-git] ใ€ข ยฉ 2022 ใ€ข **๐Ÿ‘‹๐Ÿป**: [vinces.io][vinces]

---

[vinces]: https://vinces.io
[vinces-git]: https://github.com/Sp0ne