Uploaded November 2026 | Updated November 2026, 1 hour ago
🌊 Build a glowing wave shader in Unity URP from half circles instead of a sine wave. Every line of the HLSL is explained, so you can follow along even if you've never written a shader before: UV coordinates, frac, the circle formula, flipping every other bump, bending the shape, inside/outside with smoothstep, animating with time, and keeping an even thickness.
⭕ Why a circle wave?
A sine wave is smooth and easy, but a little soft. Half circles give sharper turns, which makes the shape feel alive. The same trick works for flames 🔥, smoke wisps 💨, magic trails ✨ and UI effects.
📦 Get the shader (HLSL + a Shader Graph version):
github.com/GameDevBox/Wave-Shader-Made-of-Circles
👻 Wishlist Recursive Nightmare, my indie psychological horror game, on Steam:
store.steampowered.com/app/4987450/Recursive_Nightmare/?utm_source=youtube&utm_medium=description&utm_campaign=circle_wave_shader
⏱️ Chapters
00:00 Not a sine wave
00:13 UV coordinates
00:36 Sine wave vs circle wave
00:50 Line 1: x = y × frequency
01:02 Line 2: frac and segments
01:21 Line 3: the half circle
01:39 Line 4: flip every other bump
02:00 The Width function
02:14 Bending the shape
02:36 Inside or outside
02:59 Recursive Nightmare
03:13 Making it move and polish
03:35 Even thickness and using it
#Unity #Shaders #GameDev
🌊 Build a glowing wave shader in Unity URP from half circles instead of a sine wave. Every line of the HLSL is explained, so you can follow along even if you've never written a shader before: UV coordinates, frac, the circle formula, flipping every other bump, bending the shape, inside/outside with smoothstep, animating with time, and keeping an even thickness.
⭕ Why a circle wave?
A sine wave is smooth and easy, but a little soft. Half circles give sharper turns, which makes the shape feel alive. The same trick works for flames 🔥, smoke wisps 💨, magic trails ✨ and UI effects.
📦 Get the shader (HLSL + a Shader Graph version):
github.com/GameDevBox/Wave-Shader-Made-of-Circles
👻 Wishlist Recursive Nightmare, my indie psychological horror game, on Steam:
store.steampowered.com/app/4987450/Recursive_Nightmare/?utm_source=youtube&utm_medium=description&utm_campaign=circle_wave_shader
⏱️ Chapters
00:00 Not a sine wave
00:13 UV coordinates
00:36 Sine wave vs circle wave
00:50 Line 1: x = y × frequency
01:02 Line 2: frac and segments
01:21 Line 3: the half circle
01:39 Line 4: flip every other bump
02:00 The Width function
02:14 Bending the shape
02:36 Inside or outside
02:59 Recursive Nightmare
03:13 Making it move and polish
03:35 Even thickness and using it
#Unity #Shaders #GameDev










