Drawing a Line Segment in the URP Shader Graph with SDFs! #Shorts Preview | Unity Game Dev Tutorial @NedMakesGames
Drawing a Line Segment in the URP Shader Graph with SDFs! #Shorts Preview | Unity Game Dev Tutorial  @NedMakesGames
Uploaded June 2021 | Updated September 2026, 1 week ago
✨ Watch the full tutorial! ✨
youtu.be/D_Zq6q1gnvw

Drawing lines in shaders can be useful for procedural materials, dynamic UI or HUD elements, or interactive visual effects. In this video, I show how to draw them in Unity's URP Shader Graph using 2D signed distance fields, or SDFs. I also derive the SDF formula and explain the math behind it.

🎖️ Credits and references:
• Inigo Quilez: 2D Line Segment SDF - shadertoy.com/view/Wlfyzl
• Inigo Quilez: Deriving the SDF of a Line Segment - youtube.com/watch?v=PMltMdi1Wzg
• Inigo Quilez: 2D SDFs - iquilezles.org/www/articles/distfunctions2d/distfunctions2d.htm

#Shorts #Gamedev #Unity
Drawing a Line Segment in the URP Shader Graph with SDFs! #Shorts Preview | Unity Game Dev TutorialPicking Monsters Once Again! Tactical Lizard Tamer, Unity Game Dev Log [Part 155]Managing a Dropdown! Tactical Lizard Tamer, Unity Game Dev Log [Part 180]White Noise! Random Numbers for Shaders and ProcGen in Unity #Shorts Tutorial Teaser | Game DevThe Future of NedMakesGames ChannelTrading Times! Cannoneer, Unity Game Dev Log [Part 4]Followers Get! Twitch Concentration, Unity Entities Game Dev Log [Part 14]Partial Derivative Shader Funcs in Unity! DDX, DDY, FWidth #Shorts Preview | Game Dev TutorialThe Game Has Begun! Twitch Concentration, Unity Entities Game Dev Log [Part 13]Weaving Actions and Animations! Tactical Lizard Tamer, Unity Game Dev Log [Part 113]Egg Dino Jumps! Tactical Lizard Tamer, Unity Game Dev Log [Part 121]Toon Shader Graph with More Shadows and Better Lights in Unity URP ✔️ 2020.3 | Game Dev Tutorial
Ned Makes Games |

Drawing a Line Segment in the URP Shader Graph with SDFs! #Shorts Preview | Unity Game Dev Tutorial

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER