Last active
April 24, 2016 17:10
-
-
Save weshardee/64de0d14f92f828cdbafbe78d1fdd5d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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