Basics of Partial Derivative Shader Funcs in Unity! DDX, DDY, FWidth ✔️ 2021.1 | Game Dev Tutorial @NedMakesGames
Basics of Partial Derivative Shader Funcs in Unity! DDX, DDY, FWidth ✔️ 2021.1 | Game Dev Tutorial  @NedMakesGames
Uploaded May 2021 | Updated September 2026, 3 weeks ago
✔️ Works in 2020.3 ➕ 2021.1

To continue investigating mipmaps, I want to introduce the partial derivative shader functions in Unity URP! These functions, DDX, DDY, and FWidth, seem magical! You can pass any variable to them, and they'll give you the amount it changes over one screen pixel. Let's see how they work, how they relate to mipmaps, and how to use them for interesting effects!

👋 Subscribe for weekly game development videos!
► ✨ Watch the full tutorial on Wednesday! ✨
► youtube.com/c/nedmakesgames?sub_confirmation=1

👑 Join my Patreon for extra influence over topics, early access to videos, downloadable project files, and more!
► patreon.com/nedmakesgames

🔗 Check out my website for a searchable list of tutorials!
► nedmakesgames.github.io

🔴 Twitch ► twitch.tv/nedmakesgames
🐦 Twitter ► twitter.com/nedmakesgames
🎮 Discord ► discordapp.com/invite/ubxSVBK
📸 Instagram ► instagram.com/nedmakesgames
👽 Reddit ► reddit.com/u/nedmakesgames
🎶 TikTok ► tiktok.com/@nedmakesgames
☕ Ko-fi ► ko-fi.com/nedmakesgames

🎬 Previous videos
► Mipmap settings and custom mipmaps: youtu.be/Vq5T4hu8NWM

✨ Follow up videos
► Mipmips in shaders: youtu.be/2G0Sime3OH0

💬 Video transcript
► docs.google.com/document/d/1UGqju4gDaEjU14KRxxsu6llZldu5wOTPcIb3igMLZ94/edit?usp=sharing

⏲️ Timestamps:
0:00 Intro
1:02 Behind the scenes
2:55 Reconstructing normals
3:49 Anti-aliasing
5:05 Wrap up and credits

🎖️ Credits, references and further reading:
• Nick Klingensmith: Blended Normals, or Soft Flat Shading - playdeck.net/blog/blended-normals-or-soft-flat-shading
• Giuseppe Portelli: An introduction to shader derivative functions - aclockworkberry.com/shader-derivative-functions
• Ronja Böhringer: Partial Derivatives (fwidth) - ronja-tutorials.com/post/046-fwidth
• Lennart Demes: cc0textures - cc0textures.com/view?id=Bricks059
• Astigmatic: Special Elite font - fontsquirrel.com/fonts/special-elite

Music:
Perspectives by Kevin MacLeod
Link: incompetech.filmmusic.io/song/4207-perspectives
License: filmmusic.io/standard-license

#GameDev #IndieDev #Unity
Basics of Partial Derivative Shader Funcs in Unity! DDX, DDY, FWidth ✔️ 2021.1 | Game Dev TutorialTerrain Texture Layering! Tactical Lizard Tamer, Unity Game Dev Log [Part 146]Mouse Pointer in Screen and World Space! Mouse Picking in Unity! ✔️ 2021.1 | Game Dev TutorialWind Animated Grass In Unity URP Shader Graph Using Meshes! ✔️ 2020.3 | Game Dev TutorialPeicemeal Terrain Processing! Tactical Lizard Tamer, Unity Game Dev Log [Part 132]Blocks Are In! Tactical Lizard Tamer, Unity Game Dev Log [Part 169]Clients Are Obsolete! Tactical Lizard Tamer, Unity Game Dev Log [Part 182]The Graphics Pipeline and You | Writing Unity URP Code Shaders Tutorial [1/9] ✔️ 2021.3Drawing 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]
Ned Makes Games |

Basics of Partial Derivative Shader Funcs in Unity! DDX, DDY, FWidth ✔️ 2021.1 | Game Dev Tutorial

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER