Uploaded October 2026 | Updated November 2026, 3 hours ago
Keep your player visibleโeven behind walls! In this Unity 6.6 URP tutorial, weโll build a cutout shader using Shader Graph and a short C# script.
Youโll learn how to create a circular mask, correct its aspect ratio, make it follow your character, and add a depth comparison suited to flat dungeon layouts. Weโll also keep the effect out of Scene view and test it with a camera rotating around the player.
๐ฆ Free starter project:
patreon.com/sunnyvalleystudio/posts/free-starter-172973829
โจ Completed project โ available to Patreon supporters:
patreon.com/sunnyvalleystudio/posts/cutout-shader-173073021
๐จ Assets: KayKit Dungeon Pack by Kay Lousberg
kaylousberg.itch.io/kaykit-dungeon-pack
ยทยทยทยทยท Learn more ยทยทยทยทยท
Learn more from my courses:
courses.sunnyvalleystudio.com
ยทยทยทยทยท Get in touch ยทยทยทยทยท
๐๐ฎ๐๐ฒ ๐ฎ๐ป๐ ๐พ๐๐ฒ๐๐๐ถ๐ผ๐ป๐? ๐๐ผ๐ถ๐ป ๐๐ต๐ฒ ๐๐ถ๐๐ฐ๐ผ๐ฟ๐ฑ!
discord.gg/RQEtYHz
๐ฃ๐๐๐๐ฆ๐ ๐๐๐ฝ๐ฝ๐ผ๐ฟ๐ ๐๐ต๐ฒ ๐ฐ๐ต๐ฎ๐ป๐ป๐ฒ๐น:
patreon.com/sunnyvalleystudio
Chapters:
0:00 See-through wall effect preview
0:14 Starter project and Cinemachine setup
0:41 Create the Lit Shader Graph
1:14 Base Map and material setup
2:04 Apply the material and exclude doors
2:56 Cutout center and radius
3:23 Screen Position and the center offset
4:14 Keep the circle round at any aspect ratio
5:15 Build the circular mask with Length and Step
5:48 Test the cutout and identify the issues
6:18 Add global shader properties
7:05 Depth comparison and ignoring height
7:47 Build the depth check in Shader Graph
8:56 Branch logic and the Scene view toggle
9:42 Create the PlayerCutout C# script
10:21 Camera rendering callbacks
11:16 Update the cutout center and target depth
12:33 Assign the target and test the finished effect
13:16 Completed project download
#Unity #ShaderGraph #GameDev
Keep your player visibleโeven behind walls! In this Unity 6.6 URP tutorial, weโll build a cutout shader using Shader Graph and a short C# script.
Youโll learn how to create a circular mask, correct its aspect ratio, make it follow your character, and add a depth comparison suited to flat dungeon layouts. Weโll also keep the effect out of Scene view and test it with a camera rotating around the player.
๐ฆ Free starter project:
patreon.com/sunnyvalleystudio/posts/free-starter-172973829
โจ Completed project โ available to Patreon supporters:
patreon.com/sunnyvalleystudio/posts/cutout-shader-173073021
๐จ Assets: KayKit Dungeon Pack by Kay Lousberg
kaylousberg.itch.io/kaykit-dungeon-pack
ยทยทยทยทยท Learn more ยทยทยทยทยท
Learn more from my courses:
courses.sunnyvalleystudio.com
ยทยทยทยทยท Get in touch ยทยทยทยทยท
๐๐ฎ๐๐ฒ ๐ฎ๐ป๐ ๐พ๐๐ฒ๐๐๐ถ๐ผ๐ป๐? ๐๐ผ๐ถ๐ป ๐๐ต๐ฒ ๐๐ถ๐๐ฐ๐ผ๐ฟ๐ฑ!
discord.gg/RQEtYHz
๐ฃ๐๐๐๐ฆ๐ ๐๐๐ฝ๐ฝ๐ผ๐ฟ๐ ๐๐ต๐ฒ ๐ฐ๐ต๐ฎ๐ป๐ป๐ฒ๐น:
patreon.com/sunnyvalleystudio
Chapters:
0:00 See-through wall effect preview
0:14 Starter project and Cinemachine setup
0:41 Create the Lit Shader Graph
1:14 Base Map and material setup
2:04 Apply the material and exclude doors
2:56 Cutout center and radius
3:23 Screen Position and the center offset
4:14 Keep the circle round at any aspect ratio
5:15 Build the circular mask with Length and Step
5:48 Test the cutout and identify the issues
6:18 Add global shader properties
7:05 Depth comparison and ignoring height
7:47 Build the depth check in Shader Graph
8:56 Branch logic and the Scene view toggle
9:42 Create the PlayerCutout C# script
10:21 Camera rendering callbacks
11:16 Update the cutout center and target depth
12:33 Assign the target and test the finished effect
13:16 Completed project download
#Unity #ShaderGraph #GameDev










