Skip to content

Instantly share code, notes, and snippets.

@jkriddle
Created March 29, 2013 03:17
Show Gist options
  • Save jkriddle/5268543 to your computer and use it in GitHub Desktop.
Save jkriddle/5268543 to your computer and use it in GitHub Desktop.
Unity3D shader that will make an object transparent, but still cast shadows.
Shader "Transparent/InvisibleShadowCaster"
{
Subshader
{
UsePass "VertexLit/SHADOWCOLLECTOR"
UsePass "VertexLit/SHADOWCASTER"
}
Fallback off
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment