Skip to content

Instantly share code, notes, and snippets.

@Estecka
Last active June 27, 2019 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Estecka/99bc699ceea944c4a6c026d1f6e9d432 to your computer and use it in GitHub Desktop.
Save Estecka/99bc699ceea944c4a6c026d1f6e9d432 to your computer and use it in GitHub Desktop.
An invisible shader that still masks everything behind it
Shader "Estecka/Depth Mask" {
SubShader {
Tags { "RenderType" = "Opaque" }
Blend Zero One
Pass{}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment