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
✨ 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
![A Whole Turn Again! Tactical Lizard Tamer, Unity Game Dev Log [Part 163]
Im making a game in Unity! It will be a mixture of Pokemon teambuilding on a Fire Emblem / Final Fantasy Tactics style-map. Players will be able to mod in their own monsters and battle online!
Twitch ► https://www.twitch.tv/nedmakesgames
Twitter ► https://twitter.com/nedmakesgames
Blog ► https://nedmakesgames.tumblr.com
Discord ► https://discordapp.com/invite/ubxSVBK A Whole Turn Again! Tactical Lizard Tamer, Unity Game Dev Log [Part 163]](https://i.ytimg.com/vi/KpRFUrL-NYI/mqdefault.jpg)

![Updating the Terrain Shader! Tactical Lizard Tamer, Unity Game Dev Log [Part 128]
Im making a game in Unity! It will be a mixture of Pokemon teambuilding on a Fire Emblem / Final Fantasy Tactics style-map. Players will be able to mod in their own monsters and battle online!
Twitch ► https://www.twitch.tv/nedmakesgames
Twitter ► https://twitter.com/nedmakesgames
Blog ► https://nedmakesgames.tumblr.com
Discord ► https://discordapp.com/invite/ubxSVBK Updating the Terrain Shader! Tactical Lizard Tamer, Unity Game Dev Log [Part 128]](https://i.ytimg.com/vi/LGgbuj8gcg4/mqdefault.jpg)

![Planning Mod Metadata! Tactical Lizard Tamer, Unity Game Dev Log [Part 187]
Im making a game in Unity! It will be a mixture of Pokemon teambuilding on a Fire Emblem / Final Fantasy Tactics style map. Players will be able to mod in their own monsters and battle online!
Twitch ► https://www.twitch.tv/nedmakesgames
Twitter ► https://twitter.com/nedmakesgames
Blog ► https://nedmakesgames.tumblr.com
Discord ► https://discordapp.com/invite/ubxSVBK Planning Mod Metadata! Tactical Lizard Tamer, Unity Game Dev Log [Part 187]](https://i.ytimg.com/vi/MyqOzwM2AW0/mqdefault.jpg)
![New Unity Version! Twitch Concentration, Unity Game Dev Log [Part 8]
Im making games in Unity! Please subscribe so you wont miss a video. I Stream every weekday!
This project is a Twitch-integrated pair-matching, Concentration like game. Viewers guess pairs in chat, and the pairs are viewer logos!
Twitch ► https://www.twitch.tv/nedmakesgames
Twitter ► https://twitter.com/nedmakesgames
Discord ► https://discordapp.com/invite/ubxSVBK
Instagram ► https://instagram.com/nedmakesgames
Topic Request Submission ► https://forms.gle/vdEWUj49dVA5aTud9
Projects GitHub ► https://github.com/NedMakesGames?tab=repositories New Unity Version! Twitch Concentration, Unity Game Dev Log [Part 8]](https://i.ytimg.com/vi/NN7sADwJYU4/mqdefault.jpg)
![Specular and Ambient Lighting! Tactical Lizard Tamer, Unity Game Dev Log [Part 123]
Im making a game in Unity! It will be a mixture of Pokemon teambuilding on a Fire Emblem / Final Fantasy Tactics style-map. Players will be able to mod in their own monsters and battle online!
Twitch ► https://www.twitch.tv/nedmakesgames
Twitter ► https://twitter.com/nedmakesgames
Blog ► https://nedmakesgames.tumblr.com
Discord ► https://discordapp.com/invite/ubxSVBK Specular and Ambient Lighting! Tactical Lizard Tamer, Unity Game Dev Log [Part 123]](https://i.ytimg.com/vi/O3gQsHndipo/mqdefault.jpg)
![Phases vs Commands! Twitch Concentration, Unity Game Dev Log [Part 9]
Im making games in Unity! Please subscribe so you wont miss a video. I Stream every weekday!
This project is a Twitch-integrated pair-matching, Concentration like game. Viewers guess pairs in chat, and the pairs are viewer logos!
Twitch ► https://www.twitch.tv/nedmakesgames
Twitter ► https://twitter.com/nedmakesgames
Discord ► https://discordapp.com/invite/ubxSVBK
Instagram ► https://instagram.com/nedmakesgames
Topic Request Submission ► https://forms.gle/vdEWUj49dVA5aTud9
Projects GitHub ► https://github.com/NedMakesGames?tab=repositories Phases vs Commands! Twitch Concentration, Unity Game Dev Log [Part 9]](https://i.ytimg.com/vi/O5JsVNcR0z4/mqdefault.jpg)
![Twitch Integrated Concentration, Unity Game Dev Log [Part 1]
Im making a game in Unity! Please subscribe so you wont miss a video!
This project is a Twitch-integrated pair-matching, Concentration like game. Viewers guess pairs in chat, and the pairs are viewer logos!
Twitch ► https://www.twitch.tv/nedmakesgames
Twitter ► https://twitter.com/nedmakesgames
Discord ► https://discordapp.com/invite/ubxSVBK
Instagram ► https://instagram.com/nedmakesgames
Tutorial Tuesday Submission ► https://forms.gle/vdEWUj49dVA5aTud9
Project GitHub ► https://github.com/NedMakesGames?tab=repositories Twitch Integrated Concentration, Unity Game Dev Log [Part 1]](https://i.ytimg.com/vi/O9HQzUOLzBM/mqdefault.jpg)
![Movement Easing and Arcs! Tactical Lizard Tamer, Unity Game Dev Log [Part 110]
Im making a game in Unity! It will be a mixture of Pokemon teambuilding on a Fire Emblem / Final Fantasy Tactics style-map. Players will be able to mod in their own monsters and battle online!
Twitch ► https://www.twitch.tv/nedmakesgames
Twitter ► https://twitter.com/nedmakesgames
Blog ► https://nedmakesgames.tumblr.com
Discord ► https://discordapp.com/invite/ubxSVBK Movement Easing and Arcs! Tactical Lizard Tamer, Unity Game Dev Log [Part 110]](https://i.ytimg.com/vi/OTWYk_jNUak/mqdefault.jpg)
![A Little Netcode, A Little UI. Tactical Lizard Tamer, Unity Game Dev Log [Part 179]
Im making a game in Unity! It will be a mixture of Pokemon teambuilding on a Fire Emblem / Final Fantasy Tactics style map. Players will be able to mod in their own monsters and battle online!
Twitch ► https://www.twitch.tv/nedmakesgames
Twitter ► https://twitter.com/nedmakesgames
Blog ► https://nedmakesgames.tumblr.com
Discord ► https://discordapp.com/invite/ubxSVBK A Little Netcode, A Little UI. Tactical Lizard Tamer, Unity Game Dev Log [Part 179]](https://i.ytimg.com/vi/OdSpDzxI4ws/mqdefault.jpg)