A fully animated WebGL shader effect that renders fiery tendril‑like energy on a full‑screen canvas.
CodewithLord
November 29, 2025
This component produces Tendril Fire Energy, inspired by a Fire Titan aura.
🔥 Description
This component produces Tendril Fire Energy, inspired by a Fire Titan aura. It twists, rotates, and animates fractal‑like tendrils using pure WebGL fragment shaders.
🧠 How the Effect Works (Explanation)
1️⃣ Canvas + WebGL Setup
A full‑screen <canvas> is used.
JavaScript initializes WebGL, loads shaders, creates buffers, and renders every frame.
2️⃣ Vertex Shader
Passes full‑screen quad coordinates directly to the fragment shader.
Does not modify shapes — all visuals are in the fragment shader.
3️⃣ Fragment Shader (Main Magic)
Normalizes pixel coordinates.
Rotates them using time‑based rotation matrices.
Computes radial + angular distortions.
Uses a custom color function palette3() to generate flowing, fiery gradients.
Layers 5 tendrils using a loop.
Creates glowing intensity using pow() and sin().
4️⃣ JavaScript Rendering
Sends u_time and u_resolution every frame.
Uses requestAnimationFrame() for smooth animation.