Uploaded February 2021 | Updated September 2026, 3 weeks ago
✔️ Works in 2020.1 ➕ 2020.2 ➕ 2020.3
I've covered a lot of different types edge detection outlines built in Unity's Universal Render Pipeline Shader Graph. In this video, I take another look at per-object depth and normals outlines to further optimize them, obtaining depth and normals data from a single texture and decreasing texture reads. I also describe some ways to counter-act the loss of depth precision and keep quality as high as possible!
👋 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
🔗 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
► Hull Outlines: youtu.be/1QPA3s0S3Oo
► Edge Detection Outlines: youtu.be/RMt6DcaMxcE
► Depth Normals Outlines: youtu.be/fW-5srSHDMc
► Per-Object Outlines: youtu.be/74AS5DmLe8w
💬 Video transcript
► docs.google.com/document/d/1hDWs1jQu_lJ9zyjQrwC7PZ00pcIVMa4wJFFPaXkKcSQ/edit?usp=sharing
📜 Required scripts
► DepthNormalsFeature.cs: gist.github.com/NedMakesGames/360f900dc86120dda34cc831c823a78e
► OutlinesInclude.hlsl: gist.github.com/NedMakesGames/f5f62f9ff0fb5d3ac478430af16b3cdc
► DecodeDepthNormals.hlsl: gist.github.com/NedMakesGames/3cafdd89b68adb4c167767c4e99ecbf9
📚 Reference scripts
► OutlinesInclude.hlsl final: gist.github.com/NedMakesGames/a7a42f292b5575e9586d64c24313ac86
⏲️ Timestamps:
0:00 Intro
1:03 Theory
1:46 Project setup
2:42 OutlinesInclude
4:20 Outlines subgraph
8:25 Test graph
10:08 Adding to other graphs
10:39 Wrap up and credits
🎖️ Credits and references:
• Cyanilux: Depth - cyanilux.com/tutorials/depth/#buffer-vs-texture
• Erik Roystan Ross: Outline Shader - roystan.net/articles/outline-shader.html
• Alexander Ameye: Outlines 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/blob/master/Samples/UWP/D3D12PipelineStateCache/src/EdgeDetectPixelShader.hlsl
• Ben Golus, Keijiro Takahashi: View Direction from Screen UV - forum.unity.com/threads/help-with-view-space-normals.454248
• freepik: Wrinkled paper texture - freepik.com/premium-vector/wrinkled-paper-texture_711440.htm
• James "Nihilore" Opie: music "Moonlit Skyline" - youtube.com/watch?v=iyIjnbP6L2I
• Flytet: Great white shark - turbosquid.com/3d-models/free-big-shark-animation-3d-model/1113550
• Fruitgeoff: Underwater Scene | Folder Exam - Spring 2020 - sketchfab.com/3d-models/underwater-scene-folder-exam-spring-2020-99a3e1a8d5744aa3be9c4592e384acfb
#GameDev #IndieDev #Unity
✔️ Works in 2020.1 ➕ 2020.2 ➕ 2020.3
I've covered a lot of different types edge detection outlines built in Unity's Universal Render Pipeline Shader Graph. In this video, I take another look at per-object depth and normals outlines to further optimize them, obtaining depth and normals data from a single texture and decreasing texture reads. I also describe some ways to counter-act the loss of depth precision and keep quality as high as possible!
👋 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
🔗 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
► Hull Outlines: youtu.be/1QPA3s0S3Oo
► Edge Detection Outlines: youtu.be/RMt6DcaMxcE
► Depth Normals Outlines: youtu.be/fW-5srSHDMc
► Per-Object Outlines: youtu.be/74AS5DmLe8w
💬 Video transcript
► docs.google.com/document/d/1hDWs1jQu_lJ9zyjQrwC7PZ00pcIVMa4wJFFPaXkKcSQ/edit?usp=sharing
📜 Required scripts
► DepthNormalsFeature.cs: gist.github.com/NedMakesGames/360f900dc86120dda34cc831c823a78e
► OutlinesInclude.hlsl: gist.github.com/NedMakesGames/f5f62f9ff0fb5d3ac478430af16b3cdc
► DecodeDepthNormals.hlsl: gist.github.com/NedMakesGames/3cafdd89b68adb4c167767c4e99ecbf9
📚 Reference scripts
► OutlinesInclude.hlsl final: gist.github.com/NedMakesGames/a7a42f292b5575e9586d64c24313ac86
⏲️ Timestamps:
0:00 Intro
1:03 Theory
1:46 Project setup
2:42 OutlinesInclude
4:20 Outlines subgraph
8:25 Test graph
10:08 Adding to other graphs
10:39 Wrap up and credits
🎖️ Credits and references:
• Cyanilux: Depth - cyanilux.com/tutorials/depth/#buffer-vs-texture
• Erik Roystan Ross: Outline Shader - roystan.net/articles/outline-shader.html
• Alexander Ameye: Outlines 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/blob/master/Samples/UWP/D3D12PipelineStateCache/src/EdgeDetectPixelShader.hlsl
• Ben Golus, Keijiro Takahashi: View Direction from Screen UV - forum.unity.com/threads/help-with-view-space-normals.454248
• freepik: Wrinkled paper texture - freepik.com/premium-vector/wrinkled-paper-texture_711440.htm
• James "Nihilore" Opie: music "Moonlit Skyline" - youtube.com/watch?v=iyIjnbP6L2I
• Flytet: Great white shark - turbosquid.com/3d-models/free-big-shark-animation-3d-model/1113550
• Fruitgeoff: Underwater Scene | Folder Exam - Spring 2020 - sketchfab.com/3d-models/underwater-scene-folder-exam-spring-2020-99a3e1a8d5744aa3be9c4592e384acfb
#GameDev #IndieDev #Unity

![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)



![Terrain Section Templates! Tactical Lizard Tamer, Unity Game Dev Log [Part 148]
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 Section Templates! Tactical Lizard Tamer, Unity Game Dev Log [Part 148]](https://i.ytimg.com/vi/AlCWXvp0XLQ/mqdefault.jpg)

![Finishing Up the Model! Tactical Lizard Tamer, Unity Game Dev Log [Part 101]
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 Finishing Up the Model! Tactical Lizard Tamer, Unity Game Dev Log [Part 101]](https://i.ytimg.com/vi/AyUk_1M6hu4/mqdefault.jpg)