Dhileep Kumar GM

Crystal shader

Shaders 107

About

renders a flowing, iridescent pattern that simulates the look of liquid crystals. It reacts to your mouse by creating ripples and distortions in the fluid. The UI panel has been updated with new controls like "Flow Speed," "Distortion," and "Mouse Ripple" to give you a different set of creative tools to play with.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Crystal shader to your project and fits it to your theme.

Code

How Crystal shader is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import InteractiveShader from "@/components/ui/crystal-shader";

const settings = {
  cellDensity: 8.0,
  animationSpeed: 0.2,
  warpFactor: 0.6,
  mouseInfluence: 0.15,
};

export default function Demo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    <div className="h-screen w-screen">
      <InteractiveShader {...s} />
    </div>
  );
}

More by Dhileep Kumar GM

View all
  • Aether Flow Hero

    Aether Flow Hero

    1.9K
  • Woven Light Hero

    Woven Light Hero

    1.5K
  • AnomalousMatterHero

    AnomalousMatterHero

    1.5K
  • PulseFit hero

    PulseFit hero

    936
  • Mountain Scene

    Mountain Scene

    863
  • HolographicCard

    HolographicCard

    820
  • 3D Animation

    3D Animation

    773
  • Cybernetic Bento Grid

    Cybernetic Bento Grid

    557

More in Shaders

View all
  • Glass Fold

    Glass Fold

    261
  • Shader Animation

    Shader Animation

    3.7K
  • DitheredShaderBackground

    DitheredShaderBackground

    44
  • Wave

    Wave

    692
  • Gigabit

    Gigabit

    55
  • Shader Dithering

    Shader Dithering

    35
  • Liquid Glass Logo Reveal

    Liquid Glass Logo Reveal

    425
  • Black Hole

    Black Hole

    24