Skip to content

Instantly share code, notes, and snippets.

@Estecka
Last active June 27, 2019 12:59
Show Gist options
  • 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