Drawing Boxes and Rectangles in Shader Graph with 2D SDFs! #Shorts Preview | Unity Game Dev Tutorial @NedMakesGames
Drawing Boxes and Rectangles in Shader Graph with 2D SDFs! #Shorts Preview | Unity Game Dev Tutorial  @NedMakesGames
Uploaded June 2021 | Updated September 2026, 3 weeks ago
✨ Watch the full tutorial! ✨
► youtu.be/WuNdmjca7eM

Squares, boxes, and rounded rectangles are all common shapes you might want to draw in a shader. In this video, I show you how to do that using 2D signed distance fields, or SDFs. We'll derive the formula, recreate it in the shader graph, and then make some cool shaders to see it in action: including a mouse-controlled rectangle drawer, rainbow SDF visualizer, and procedural brick wall.

🎖️ Credits and references:
• Inigo Quilez: 2D SDF formulas - iquilezles.org/www/articles/distfunctions2d/distfunctions2d.htm

Music:
Ouroboros by Kevin MacLeod
Link: incompetech.filmmusic.io/song/4996-ouroboros
License: filmmusic.io/standard-license

#Shorts #Gamedev #Unity
Drawing Boxes and Rectangles in Shader Graph with 2D SDFs! #Shorts Preview | Unity Game Dev TutorialA Whole Turn Again! Tactical Lizard Tamer, Unity Game Dev Log [Part 163]Create a Sand Dune Shader Graph in Unity URP! No Textures Needed! ✔️ 2020.3 | Game Dev TutorialUpdating the Terrain Shader! Tactical Lizard Tamer, Unity Game Dev Log [Part 128]Intro Renderer Feature in Unity URP - Desaturate Post Process Effect ✔️ 2020.3 | Game Dev TutorialPlanning Mod Metadata! Tactical Lizard Tamer, Unity Game Dev Log [Part 187]New Unity Version! Twitch Concentration, Unity Game Dev Log [Part 8]Specular and Ambient Lighting! Tactical Lizard Tamer, Unity Game Dev Log [Part 123]Phases vs Commands! Twitch Concentration, Unity Game Dev Log [Part 9]Twitch Integrated Concentration, Unity Game Dev Log [Part 1]Movement Easing and Arcs! Tactical Lizard Tamer, Unity Game Dev Log [Part 110]A Little Netcode, A Little UI. Tactical Lizard Tamer, Unity Game Dev Log [Part 179]
Ned Makes Games |

Drawing Boxes and Rectangles in Shader Graph with 2D SDFs! #Shorts Preview | Unity Game Dev Tutorial

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER