Depth | Unity Shader Code Basics 04 @danielilett
Depth | Unity Shader Code Basics 04  @danielilett
Uploaded October 2025 | Updated November 2026, 3 hours ago
Using the depth buffer, Unity can draw objects with the correct per-pixel ordering. We can also access the _CameraDepthTexture, a special texture which contains depth information, to create effects such as silhouettes, or we can change the ZTest to something else like Greater to create an x-ray effect.
------------------------------------------------------------------------
๐Ÿ‘‡ Download the project on GitHub: github.com/daniel-ilett/shaders-hlsl-basics
๐Ÿ“ฐ Read this tutorial in article format instead: danielilett.com/2026-01-02-tut10-04-depth
------------------------------------------------------------------------
โœจ Snapshot Shaders 2 has you covered for all your post processing needs: assetstore.unity.com/packages/vfx/shaders/fullscreen-camera-effects/snapshot-shaders-2-for-urp-331908?aid=1101lfDLn

โœจ Grab Retro Shaders Pro, my PSX and N64 shader asset pack, here: assetstore.unity.com/packages/vfx/shaders/retro-shaders-pro-for-urp-287937?aid=1101lfDLn

๐Ÿ“š Get a copy of my shader book here: link.springer.com/book/10.1007/978-1-4842-8652-4
------------------------------------------------------------------------
๐Ÿ’ฌ Join the Discord: discord.gg/tPQEUwPpb3
โ˜• Or throw me a one-off coffee on Ko-fi: ko-fi.com/danielilett
------------------------------------------------------------------------
Depth | Unity Shader Code Basics 04Evenly Spacing Objects in Unity #unity #gamedev #madewithunityHalftone Effect in Unity Shader Graph and URPPokรฉmons Terastallize Effect in Shader GraphSnow Layers in Unity Shader Graph and URPChannel Trailer - Daniel Ilett: Games | Shaders | TutorialsBuilding Quality Shaders: Scripting, Keywords, and GrabPass #unity #gamedev #madewithunityHow To Use All 200+ Nodes in Unity Shader GraphGive Your Sprites Outlines in Unity Shader GraphGaussian Blur Post Process in Unity 2021 URPGooch Shader | CC0Shaders #gamedev #shadersMGS Stealth Camo in Unity Shader Graph
Daniel Ilett |

Depth | Unity Shader Code Basics 04

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER