Skip to content

Simple but powerful Unity shader that enables geometry masking for cutouts, UI, AR, and multiple camera VFX tricks.

Notifications You must be signed in to change notification settings

doomlaser/DepthMask-Unity-Shader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Unity Depth Mask Shader

This simple shader attached to a material is incredibly useful in @unity3d. Anything behind a mesh with it applied will be rendered invisible to your camera.

Combine with multiple cameras for cool masking tricks. Useful for creating fake holes in geometry, UI and AR applications.

Getting Started

Download the shader and put it in your project's Assets/shaders directory. Make a material in Unity and set its shader to DepthMask, and experiment.

Good luck!

@Doomlaser

About

Simple but powerful Unity shader that enables geometry masking for cutouts, UI, AR, and multiple camera VFX tricks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published