Created
December 12, 2012 10:23
-
-
Save sfszh/4266688 to your computer and use it in GitHub Desktop.
First shader I made
This file contains 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
Shader "Custom/NewShader" { | |
Properties { | |
_Color("Color",Color) = (1,0,0) | |
_MainTex("Texture Main", 2D) = ""{ TexGen sphereMap } | |
_AltTex("Texture Alt", 2D) = "" { } | |
_Number("nameNumber", Range(0,1)) = 1 | |
} | |
SubShader { | |
//BindChannels{ | |
// Bind "vertex", vertex | |
// Bind "color", color | |
//} | |
Pass{ | |
//Color[_Color] | |
//SetTexture[_MainTex] { | |
// combine primary alpha * texture | |
//} | |
SetTexture[_MainTex]{ | |
//ConstantColor ([_Number],[_Number],1,[_Number]) | |
//ConstantColor (1,1,1,[_Number]) | |
Combine Texture | |
} | |
} | |
} | |
FallBack "Diffuse" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment