Water
Click to change the sample image
Installation
npm i @paper-design/shaders-react
Code
import { Water } from '@paper-design/shaders-react'; <Water width={1280} height={720} image="https://paper.design/flowers.webp" colorBack="#8f8f8f" colorHighlight="#ffffff" highlights={0.07} layering={0.5} edges={0.8} waves={0.3} caustic={0.1} size={1} speed={1} scale={0.8} fit="contain" />
Shader Props
Common Props
Description
Water-like surface distortion with natural caustic realism. Works as an image filter or animated texture without image.
Notes
Thanks to zozuar for the amazing recursive fractal noise algorithm.