tungcheng / DepthMask-Unity-Shader

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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, and multiple camera VFX tricks.


Languages

Language:ShaderLab 100.0%