- 最后登录
- 2014-10-23
- 注册时间
- 2011-7-19
- 阅读权限
- 90
- 积分
- 81303
- 纳金币
- -1
- 精华
- 11
|
Shader "MY/EnvMap" {
Properties {
_EnvMap ("EnvMap", 2D) = "black" { TexGen SphereMap }
}
SubShader {
Pass {
Name "BASE"
BindChannels {
Bind "Vertex", vertex
Bind "normal", normal
}
SetTexture [_EnvMap] {
combine texture
}
}
}
Fallback off
}
Shader "MY/EnvMap" {
Properties {
_EnvMap ("EnvMap", 2D) = "black" { TexGen SphereMap }
}
SubShader {
Pass {
Name "BASE"
BindChannels {
Bind "Vertex", vertex
Bind "normal", normal
}
SetTexture [_EnvMap] {
combine texture
}
}
}
Fallback off
}
Shader "MY/EnvMapGlass"
{
Properties
{
_EnvMap ("EnvMap", 2D) = "black" { TexGen SphereMap }
}
SubShader
{
SeperateSpecular On
Pass
{
Name "BASE"
Cull Front
Blend One OneMinusDstColor
//Blend One One
BindChannels
{
Bind "Vertex", vertex
Bind "normal", normal
}
SetTexture [_EnvMap]
{
combine texture
}
}
Pass
{
Name "BASE"
ZWrite on
Blend One One
BindChannels
{
Bind "Vertex", vertex
Bind "normal", normal
}
SetTexture [_EnvMap]
{
combine texture
}
}
}
Fallback off
} |
|