- 最后登录
- 2016-8-29
- 注册时间
- 2012-8-25
- 阅读权限
- 90
- 积分
- 23585
  
- 纳金币
- 20645
- 精华
- 62
|
可调节反射程度的镜面效果
复制内容到剪贴板代码:- 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 }
- }
- }
- }
复制代码 |
|