Eye of Sauron

A fiery eye with a pupil that tracks the cursor, rendered with a WebGL shader.

1 min read

A fiery eye rendered in WebGL using a custom fragment shader. The pupil tracks cursor position (or touch on mobile) with smooth interpolation.

The effect is based on procedural noise — iris rings and outer glow are generated from a noise texture in polar space. The fire pulses independently of user interaction.

Based on the Evil Eye component from React Bits.