纳金网
标题:
双法线转换
[打印本页]
作者:
晃晃
时间:
2011-9-2 08:26
标题:
双法线转换
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
}
作者:
Asen
时间:
2011-9-2 09:00
作者:
难骑
时间:
2011-9-3 08:02
提示:
作者被禁止或删除 内容自动屏蔽
作者:
tc
时间:
2011-12-23 15:21
跑着去顶朋友滴铁
作者:
菜刀吻电线
时间:
2012-3-10 23:31
其实楼主所说的这些,俺支很少用!
作者:
菜刀吻电线
时间:
2012-3-11 23:30
响应天帅号召,顶
作者:
晃晃
时间:
2012-6-15 23:21
凡系斑竹滴话要听;凡系朋友滴帖要顶
作者:
tc
时间:
2012-8-4 01:33
很经典,很实用,学习了!
作者:
奇
时间:
2012-10-26 23:28
读铁系缘分,顶铁系友情
欢迎光临 纳金网 (http://go.narkii.com/club/)
Powered by Discuz! X2.5