Uploaded February 2021 | Updated November 2026, 2 days ago
Many games need to make sure the focus is on the player or some other object, and walls are usually a hindrance. You could move the camera past the wall or render things over it.
In this tutorial, we'll just cut a hole in the wall instead. I've seen a wall cutout effect before in a handful of ways, so I'm going to take an alternative approach that doesn't use a stencil.
--------------
💻 Check it out on GitHub: github.com/daniel-ilett/shaders-wall-cutout
✨ Assets used: 3D Free Modular Kit: assetstore.unity.com/packages/3d/environments/3d-free-modular-kit-85732?aid=1101lfDLn (affiliate link)
--------------
This project uses Unity 2020.2.1f1 and URP 10.2.2, but it should work with other versions.
--------------
📚 Get a copy of my shader book here: dpbolvw.net/click-100742141-12898971?url=https%3A%2F%2Flink.springer.com%2Fbook%2F10.1007%2F978-1-4842-8652-4
✨ Grab Snapshot Shaders Pro here: assetstore.unity.com/packages/vfx/shaders/fullscreen-camera-effects/snapshot-shaders-pro-for-urp-hdrp-160556?aid=1101lfDLn
------------
💬 Join the Discord: discord.gg/tPQEUwPpb3
💖 Support me on Patreon: patreon.com/danielilett?fan_landing=true
☕ Or throw me a one-off coffee on Ko-fi: ko-fi.com/danielilett
#unity #shaders #tutorial
Many games need to make sure the focus is on the player or some other object, and walls are usually a hindrance. You could move the camera past the wall or render things over it.
In this tutorial, we'll just cut a hole in the wall instead. I've seen a wall cutout effect before in a handful of ways, so I'm going to take an alternative approach that doesn't use a stencil.
--------------
💻 Check it out on GitHub: github.com/daniel-ilett/shaders-wall-cutout
✨ Assets used: 3D Free Modular Kit: assetstore.unity.com/packages/3d/environments/3d-free-modular-kit-85732?aid=1101lfDLn (affiliate link)
--------------
This project uses Unity 2020.2.1f1 and URP 10.2.2, but it should work with other versions.
--------------
📚 Get a copy of my shader book here: dpbolvw.net/click-100742141-12898971?url=https%3A%2F%2Flink.springer.com%2Fbook%2F10.1007%2F978-1-4842-8652-4
✨ Grab Snapshot Shaders Pro here: assetstore.unity.com/packages/vfx/shaders/fullscreen-camera-effects/snapshot-shaders-pro-for-urp-hdrp-160556?aid=1101lfDLn
------------
💬 Join the Discord: discord.gg/tPQEUwPpb3
💖 Support me on Patreon: patreon.com/danielilett?fan_landing=true
☕ Or throw me a one-off coffee on Ko-fi: ko-fi.com/danielilett
#unity #shaders #tutorial










