Skip to content

A shader effect which cuts a hole in the wall to prevent an object being obstructed.

License

Notifications You must be signed in to change notification settings

slagatoras/shaders-wall-cutout

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wall Cutout in Unity Shader Graph

A shader effect which cuts a hole in the wall to prevent an object being obstructed.

Wall Cutout Banner

Overview

Games often use tricks to see objects through walls. This example shader can be used to cut a hole in a wall (or any other object really) in oder to view a target object through it. It works by selecting a region on the wall and setting an alpha clip threshold, then reducing the alpha of that region to zero. For added detail, dithering is used on the edge of the region to blend the cut region.

Software

This project was created using Unity 2020.2.1f1 and Universal Render Pipeline 10.2.2.

Authors

This project and the corresponding tutorial was created by Daniel Ilett.

Release

This project was publically released on February 15th 2021.

About

A shader effect which cuts a hole in the wall to prevent an object being obstructed.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Mathematica 50.2%
  • C# 49.8%