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

preview_player
Показать описание
✨ Watch the full tutorial! ✨

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:

Music:
Ouroboros by Kevin MacLeod

#Shorts #Gamedev #Unity
Рекомендации по теме
Комментарии
Автор

Hi everyone! I'm glad many of you seem to like SDFs as much as I do! They're a lot of fun to work with, so I'm excited to show off another type in a couple of days. Thanks for watching!

NedMakesGames