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

https://github.com/emmelleppi/r3f-liquid-bottle

Liquid shader with refraction using threejs and react-three-fiber
https://github.com/emmelleppi/r3f-liquid-bottle

drei javascript r3f react-three-fiber reactjs three-js threejs

Last synced: about 1 year ago
JSON representation

Liquid shader with refraction using threejs and react-three-fiber

Awesome Lists containing this project

README

          

# Preview https://r3f-liquid-bottle.netlify.app 🍾🍾🍾

Made with react-three-fiber and use-cannon

![](https://raw.githubusercontent.com/emmelleppi/r3f-liquid-bottle/master/screenshot.jpg)

Based on these tutorials

- Refraction shader:
https://tympanus.net/codrops/2019/10/29/real-time-multiside-refraction-in-three-steps/

- Liquid shader:
https://www.patreon.com/posts/quick-game-art-18245226

To run locally:

```bash
# using npm
npm install
npm run start

# using yarn
yarn
yarn start
```