Docs
Mouse Wave Shader
Mouse Wave Shader
An interactive and customizable component that creates a dynamic wave effect responding to mouse movements, perfect for immersive backgrounds.
Loading...
Installation
Install dependencies
npm install
Add the shader file
components/shaders/mouse-wave-shader
Copy the mouse-wave component
mouse-wave.tsx
Copy the source code
mouse-wave-scene.tsx
Props
MouseWave 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 |
MouseWaveScene Props
Prop | Type | Description | Default |
---|---|---|---|
imagePath | String | The path to the image that will be passed to MouseWave. | - |
cameraDistance | Number | The distance of the camera from the object. | - |