Skip to content

Instantly share code, notes, and snippets.

@sfszh
Created December 12, 2012 10:23
Show Gist options
  • Save sfszh/4266688 to your computer and use it in GitHub Desktop.
Save sfszh/4266688 to your computer and use it in GitHub Desktop.
First shader I made
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