纳金网

标题: shader双法线转换 [打印本页]

作者: 会飞的鱼    时间: 2012-3-9 11:10
标题: shader双法线转换
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
}
作者: BU Secret    时间: 2012-3-9 17:44
搞什么啊
作者: 浩劫    时间: 2012-3-9 20:04





欢迎光临 纳金网 (http://old.narkii.com/club/) Powered by Discuz! X2.5