<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jef Vereecke</title>
    <description>The latest articles on DEV Community by Jef Vereecke (@jefvereecke).</description>
    <link>https://dev.to/jefvereecke</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4201301%2Fbdf71098-8174-4ca3-9fc5-57b5397aab0c.jpg</url>
      <title>DEV Community: Jef Vereecke</title>
      <link>https://dev.to/jefvereecke</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jefvereecke"/>
    <language>en</language>
    <item>
      <title>Building an Interactive Rain-on-Glass Effect with Three.js and WebGL</title>
      <dc:creator>Jef Vereecke</dc:creator>
      <pubDate>Thu, 22 Oct 2026 22:56:09 +0000</pubDate>
      <link>https://dev.to/jefvereecke/building-an-interactive-rain-on-glass-effect-with-threejs-and-webgl-5de9</link>
      <guid>https://dev.to/jefvereecke/building-an-interactive-rain-on-glass-effect-with-threejs-and-webgl-5de9</guid>
      <description>&lt;p&gt;Building an Interactive Rain-on-Glass Effect with Three.js and WebGL&lt;/p&gt;

&lt;p&gt;I've been experimenting with Three.js and WebGL while working on my personal portfolio.&lt;/p&gt;

&lt;p&gt;One of those experiments turned into Rain on Glass. An interactive effect where water droplets fall onto a virtual glass surface, slide down, leave trails and respond to mouse movement.&lt;/p&gt;

&lt;p&gt;Instead of simply animating circles with CSS, I wanted to explore how to make the water feel like part of the surface.&lt;/p&gt;

&lt;p&gt;How it works&lt;/p&gt;

&lt;p&gt;The effect combines a few different technologies:&lt;/p&gt;

&lt;p&gt;JavaScript handles user interactions and the movement of the droplets.&lt;br&gt;
Three.js manages the rendering setup.&lt;br&gt;
WebGL2 and GLSL shaders handle the appearance of the water, including lighting, surface distortion and refraction.&lt;/p&gt;

&lt;p&gt;Each droplet has its own position, velocity and movement state. After hitting the glass, it gradually starts sliding down, leaving a temporary trail behind.&lt;/p&gt;

&lt;p&gt;The shaders help give the droplets their shape and depth without needing actual 3D water models.&lt;/p&gt;

&lt;p&gt;The challenging part&lt;/p&gt;

&lt;p&gt;Getting the water to look convincing was more difficult than making it move.&lt;/p&gt;

&lt;p&gt;My first splash effects looked like perfectly round, glowing circles. They didn't match the more realistic appearance of the droplets at all.&lt;/p&gt;

&lt;p&gt;I experimented with more irregular shapes, subtle highlights and surface distortion to make the different parts of the effect feel more consistent.&lt;/p&gt;

&lt;p&gt;It's still an approximation rather than a full fluid simulation, but that's also part of what makes experimenting with shaders interesting.&lt;/p&gt;

&lt;p&gt;Try it yourself&lt;/p&gt;

&lt;p&gt;The experiment is available on CodePen:&lt;/p&gt;

&lt;p&gt;(&lt;a href="https://codepen.io/editor/JeffreyBezosz/pen/01a165a4-0636-7d20-aba1-7e677475df60" rel="noopener noreferrer"&gt;https://codepen.io/editor/JeffreyBezosz/pen/01a165a4-0636-7d20-aba1-7e677475df60&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;Click or tap to create droplets and move your mouse around to interact with them.&lt;/p&gt;

&lt;p&gt;What's next?&lt;/p&gt;

&lt;p&gt;I'm still exploring how far I can take these kinds of interactions without sacrificing performance or usability.&lt;/p&gt;

&lt;p&gt;As a Digital Experience Design student, I enjoy working between visual design and development, and this was a fun way to experiment with both.&lt;/p&gt;

&lt;p&gt;You can also check out my other projects on my personal portfolio (&lt;a href="https://jefvereecke.be/" rel="noopener noreferrer"&gt;https://jefvereecke.be/&lt;/a&gt;).&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>showdev</category>
      <category>threejs</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
