- 最后登录
- 2014-10-23
- 注册时间
- 2011-7-19
- 阅读权限
- 90
- 积分
- 81303
- 纳金币
- -1
- 精华
- 11
|
Shader "New Shader" {
Properties {
_Color("Main Color",Color)=(1,1,1,1)
_MainTex ("Base (RGB)", 2D) = "white" {}
}
SubShader {
Pass{
Name "BASE"
Tags{"LightMode" = "Always" /* Upgrade NOTE: changed from PixelOrNone to Always */}
Color[_PPLAmbient]
SetTexture[_BumpMap]
{
constantColor (.5,.5,.5)
combine constant lerp (texture) previous
}
SetTexture [_MainTex]
{
constantColor[_Color]
Combine texture * previous DOUBLE,texture*constant
}
}
Pass{
Name "BASE"
Tags{"LightMode" = "Vertex"}
Material{
Diffuse [_Color]
Emission [_PPLAmbient]
Shininess [_Shininess]
Specular [_SpecColor]
}
SeparateSpecular On
Lighting On
Cull Off
SetTexture[_BumpMap]
{
constantColor(.5,.5,.5)
combine constant lerp (texture) previous
}
SetTexture[_MainTex]
{
Combine texture*previous DOUBLE,texture*primary
}
}
}
FallBack "Diffuse",1
} |
|