- 最后登录
- 2017-5-15
- 注册时间
- 2012-3-1
- 阅读权限
- 90
- 积分
- 32973
- 纳金币
- 32806
- 精华
- 12
|
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
}
|
|