Skip to content

Instantly share code, notes, and snippets.

@weshardee
Last active April 24, 2016 17:10
Show Gist options
  • Save weshardee/64de0d14f92f828cdbafbe78d1fdd5d0 to your computer and use it in GitHub Desktop.
Save weshardee/64de0d14f92f828cdbafbe78d1fdd5d0 to your computer and use it in GitHub Desktop.
// Flat planes (quads) with textures. A background image in a 2D game perhaps?
Shader "2D/Texture Only"
{
Properties
{
_MainTex ("Texture", 2D) = ""
}
SubShader
{
ZWrite On // "Off" might make more sense in very specific games
Pass
{
SetTexture[_MainTex]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment