Liquid Distortion Shader

A WebGL displacement shader creating a liquid, glassy refraction effect over neon gradients.

Under the Hood: How it Works

Simplex Noise GLSL Shading

Driven purely by the GPU rather than the CPU, this WebGL fragment shader utilizes snoise (Simplex Noise) mathematically injected into the texture coordinates. The noise matrix continuously warps the perceived space between two neon uniform colors, outputting incredibly smooth, liquid-like refraction.

Full Screen Preview Download HTML

Technical Details

Category 3D & WebGL
Technology webgl
Performance heavy
Interaction scroll

Tags

How to Use This Animation

Step-by-step instructions to integrate Liquid Distortion Shader into your project.

🚀

Add Liquid Distortion Shader to Your Site

  1. 1 Click Download HTML to get the standalone Liquid Distortion Shader file
  2. 2 Open the file in a code editor and copy the <style> block into your CSS
  3. 3 Copy the <script> block before your closing </body> tag
  4. 4 Add the HTML markup to your page where you want the animation
🎯

Use as a Full-Page Background

  1. 1 Add a container div with position: fixed; inset: 0; z-index: -1
  2. 2 Place the animation inside that container
  3. 3 Your page content will appear above the animation
  4. 4 Add pointer-events: none to the container if the animation blocks clicks

Source Code
Source Copied!
Loved this effect? Host your deployment globally for free on our partner networks:
Vercel Netlify Hostinger