Docs
Hover Wave Shader
Hover Wave Shader
A interactive and customizable shader effect that generates dynamic waves based on hover interactions, ideal for adding engaging visual effects to backgrounds.
Loading...
Installation
Install dependencies
npm install
Add the shader file
components/shaders/mouse-wave-shader
Copy the hover-wave component
hover-wave.tsx
Copy the source code
hover-wave-scene.tsx
Props
HoverWave Props
Prop | Type | Description | Default |
---|---|---|---|
imagePath | String | The path to the image that will be used as the texture. | - |
cameraDistance | Number | The distance of the camera from the object. | 700 |
HoverWaveScene Props
Prop | Type | Description | Default |
---|---|---|---|
imagePath | String | The path to the image that will be passed to HoverWave. | - |
cameraDistance | Number | The distance of the camera from the object. | - |