- 最后登录
- 2017-4-1
- 注册时间
- 2011-7-26
- 阅读权限
- 90
- 积分
- 24690
- 纳金币
- 24658
- 精华
- 6
|
可调节反射程度的镜面效果
复制内容到剪贴板代码:
Shader "FX/Mirror Blend" {
Properties {
_MainTex ("Base (RGB) RefStrength (A)", 2D) = "white" {}
_ReflectionTex ("Reflection", 2D) = "white" { TexGen ObjectLinear }
}
// two texture cards: full thing
Subshader {
Pass {
SetTexture [_ReflectionTex] { matrix [_ProjMatrix] combine texture }
SetTexture [_MainTex] { combine texture lerp (texture) previous }
}
}
// fallback: just main texture
Subshader {
Pass {
SetTexture [_MainTex] { combine texture }
}
}
}
|
|