Open links in new tab
  1. Copilot Answer

    Creating a Water-like Distortion Effect with Three.js

    • The first idea that comes to mind is to use the current mouse position as a uniform and then simply displace the scene and call it a day. But that would mean only having one ripple that always remain… See more

    Canvas as A Texture

    Let’s use the canvas as a texture, hence the name WaterTexture. We are going to draw our ripples on the canvas, and use it as a texture in a postprocessing shader. First, let’s make a texture using our canvas and refresh… See more

    Creating A Basic Three.Js Scene

    For this effect, it doesn’t matter what we render. So, we’ll only have a single plane to showcase the effect. But feel free to create an awesome-looking scene and share it with us in the comments! Since we’re done with Water… See more

    Applying The Distortion to The Rendered Scene

    We are going to use postprocessing to apply the water-like effect to our render. Postprocessing allows you to add effects or filters after (post) your scene is rendered (processing). Like any kind of image effect or filter yo… See more

    Conclusion

    Through this article, we’ve created ripples, encoded their data into the color channels and used it in a postprocessing effect to distort our render. That’s a lot of complicated-sounding words! Great work, pat yoursel… See more

    Feedback
     
  1. Some results have been removed