Uploaded January 2021 | Updated November 2026, 1 day ago
✔️ Works in 2020.1 ➕ 2020.2 ➕ 2020.3 🩹 Fixes:
► At line 39 in OutlinesInclude.hlsl, the sixth entry in sobelSamplePoints should be float2(1, 0), not float2(1, 1)
Outlines are a great way to add polish and style to a variety of games! In this tutorial, I apply depth and normal outlines to single objects, allowing different outline colors. This technique also skips the post processing step, which can be a big performance boost for lightweight platforms!
👋 Subscribe for weekly game development videos!
youtube.com/c/nedmakesgames?sub_confirmation=1
👑 Join my Patreon for extra influence over topics, early access to videos, and downloadable project files!
► patreon.com/nedmakesgames
🔴 Twitch ► twitch.tv/nedmakesgames
🐦 Twitter ► twitter.com/nedmakesgames
🎮 Discord ► discordapp.com/invite/ubxSVBK
📸 Instagram ► instagram.com/nedmakesgames
🎶 TikTok ► tiktok.com/@nedmakesgames
☕ Ko-fi ► ko-fi.com/nedmakesgames
🎬 Previous videos
► Depth and color outlines: youtu.be/RMt6DcaMxcE
► Normal outlines: youtu.be/fW-5srSHDMc
✨Follow up videos
► Optimized outlines: youtu.be/8Xq7tU5QN1Q
💬 Video transcript
► docs.google.com/document/d/1YrGlu2uVrZbAXszXPYMENxUCe_MemZwRDHsuCG8rN64/edit?usp=sharing
📜 Required scripts
► DepthNormalsFeature.cs: gist.github.com/NedMakesGames/660ea67339e5426c578ca244b58d83bf
► OutlinesInclude.hlsl: gist.github.com/NedMakesGames/9d433cce7575d8d776da789f29905306
► DecodeDepthNormals.hlsl: gist.github.com/NedMakesGames/043a4f0c2e894217fb9b9d4c2ac270f8
► BlitMaterialFeature.cs: github.com/NedMakesGames/RendererFeatureBlitMat/blob/master/Assets/Rendering/Desaturate/BlitMaterialFeature.cs
⏲️ Timestamps:
0:00 Intro
1:00 Theory
2:06 Project Setup
2:53 Outlines graph
5:49 Simple outlined shader
7:19 Outlines in unlit graphs
7:30 Outlines in lit graphs
9:35 Conflict with AO
9:57 Wrap up and credits
🎖️ Credits and references:
• PolyChromic: Toon Mushrooms - sketchfab.com/3d-models/toon-mushrooms-d55aae0bfdd8424cb4f7f7573a79f009
• Cyanilux: Depth - cyanilux.com/tutorials/depth/#buffer-vs-texture
• Roystan: Outline Shader - roystan.net/articles/outline-shader.html
• Alexander Ameye: Outline Shader - alexanderameye.github.io/outlineshader.html
• Hanane Rami, Mohammed Hamri, Lhoussiene Masmoudi: Color Edge Detector with Sobel-PCA - https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.402.6975&rep=rep1&type=pdf
• Microsoft: DirectX Graphics Samples - github.com/microsoft/DirectX-Graphics-Samples
• Ben Golus and Keijiro Takahashi: View direction from screen position - forum.unity.com/threads/help-with-view-space-normals.454248
• James Opie AKA Nihilore: music "The Author Never Dies" - youtube.com/watch?v=Pm2QnPztgzY
• freepik: Wrinkled paper texture - freepik.com/premium-vector/wrinkled-paper-texture_711440.htm
#GameDev #IndieDev #Unity
✔️ Works in 2020.1 ➕ 2020.2 ➕ 2020.3 🩹 Fixes:
► At line 39 in OutlinesInclude.hlsl, the sixth entry in sobelSamplePoints should be float2(1, 0), not float2(1, 1)
Outlines are a great way to add polish and style to a variety of games! In this tutorial, I apply depth and normal outlines to single objects, allowing different outline colors. This technique also skips the post processing step, which can be a big performance boost for lightweight platforms!
👋 Subscribe for weekly game development videos!
youtube.com/c/nedmakesgames?sub_confirmation=1
👑 Join my Patreon for extra influence over topics, early access to videos, and downloadable project files!
► patreon.com/nedmakesgames
🔴 Twitch ► twitch.tv/nedmakesgames
🐦 Twitter ► twitter.com/nedmakesgames
🎮 Discord ► discordapp.com/invite/ubxSVBK
📸 Instagram ► instagram.com/nedmakesgames
🎶 TikTok ► tiktok.com/@nedmakesgames
☕ Ko-fi ► ko-fi.com/nedmakesgames
🎬 Previous videos
► Depth and color outlines: youtu.be/RMt6DcaMxcE
► Normal outlines: youtu.be/fW-5srSHDMc
✨Follow up videos
► Optimized outlines: youtu.be/8Xq7tU5QN1Q
💬 Video transcript
► docs.google.com/document/d/1YrGlu2uVrZbAXszXPYMENxUCe_MemZwRDHsuCG8rN64/edit?usp=sharing
📜 Required scripts
► DepthNormalsFeature.cs: gist.github.com/NedMakesGames/660ea67339e5426c578ca244b58d83bf
► OutlinesInclude.hlsl: gist.github.com/NedMakesGames/9d433cce7575d8d776da789f29905306
► DecodeDepthNormals.hlsl: gist.github.com/NedMakesGames/043a4f0c2e894217fb9b9d4c2ac270f8
► BlitMaterialFeature.cs: github.com/NedMakesGames/RendererFeatureBlitMat/blob/master/Assets/Rendering/Desaturate/BlitMaterialFeature.cs
⏲️ Timestamps:
0:00 Intro
1:00 Theory
2:06 Project Setup
2:53 Outlines graph
5:49 Simple outlined shader
7:19 Outlines in unlit graphs
7:30 Outlines in lit graphs
9:35 Conflict with AO
9:57 Wrap up and credits
🎖️ Credits and references:
• PolyChromic: Toon Mushrooms - sketchfab.com/3d-models/toon-mushrooms-d55aae0bfdd8424cb4f7f7573a79f009
• Cyanilux: Depth - cyanilux.com/tutorials/depth/#buffer-vs-texture
• Roystan: Outline Shader - roystan.net/articles/outline-shader.html
• Alexander Ameye: Outline Shader - alexanderameye.github.io/outlineshader.html
• Hanane Rami, Mohammed Hamri, Lhoussiene Masmoudi: Color Edge Detector with Sobel-PCA - https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.402.6975&rep=rep1&type=pdf
• Microsoft: DirectX Graphics Samples - github.com/microsoft/DirectX-Graphics-Samples
• Ben Golus and Keijiro Takahashi: View direction from screen position - forum.unity.com/threads/help-with-view-space-normals.454248
• James Opie AKA Nihilore: music "The Author Never Dies" - youtube.com/watch?v=Pm2QnPztgzY
• freepik: Wrinkled paper texture - freepik.com/premium-vector/wrinkled-paper-texture_711440.htm
#GameDev #IndieDev #Unity

![Errors and Time Outs! Tactical Lizard Tamer, Unity Game Dev Log [Part 164]
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 Errors and Time Outs! Tactical Lizard Tamer, Unity Game Dev Log [Part 164]](https://i.ytimg.com/vi/7Ka7ZF_hWmw/mqdefault.jpg)
![Reacting to UI Input! Tactical Lizard Tamer, Unity Game Dev Log [Part 176]
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 Reacting to UI Input! Tactical Lizard Tamer, Unity Game Dev Log [Part 176]](https://i.ytimg.com/vi/8QnjhMZlS5M/mqdefault.jpg)


![New Terrain in the Game! Tactical Lizard Tamer, Unity Game Dev Log [Part 168]
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 New Terrain in the Game! Tactical Lizard Tamer, Unity Game Dev Log [Part 168]](https://i.ytimg.com/vi/98UekMT7yrY/mqdefault.jpg)
![Planning for Users! Twitch Concentration, Unity Entities Game Dev Log [Part 12]
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 Planning for Users! Twitch Concentration, Unity Entities Game Dev Log [Part 12]](https://i.ytimg.com/vi/98zTmqVx_tk/mqdefault.jpg)
![Feet, Toes, and Claws! Tactical Lizard Tamer, Unity Game Dev Log [Part 100]
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 Feet, Toes, and Claws! Tactical Lizard Tamer, Unity Game Dev Log [Part 100]](https://i.ytimg.com/vi/9nEENtwWdu4/mqdefault.jpg)
![Terrain Occlusion Shadows! Tactical Lizard Tamer, Unity Game Dev Log [Part 136]
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 Terrain Occlusion Shadows! Tactical Lizard Tamer, Unity Game Dev Log [Part 136]](https://i.ytimg.com/vi/APv82Y6sPxg/mqdefault.jpg)

