纳金网

标题: 可调节反射程度的镜面效果 [打印本页]

作者: 王者再临    时间: 2014-2-23 01:47
标题: 可调节反射程度的镜面效果
可调节反射程度的镜面效果
复制内容到剪贴板代码:
  1. Shader "FX/Mirror Blend" {

  2. Properties {

  3.    _MainTex ("Base (RGB) RefStrength (A)", 2D) = "white" {}

  4.    _ReflectionTex ("Reflection", 2D) = "white" { TexGen ObjectLinear }

  5. }
  6. // two texture cards: full thing

  7. Subshader {

  8.    Pass {

  9.       SetTexture [_ReflectionTex] { matrix [_ProjMatrix] combine texture }

  10.       SetTexture [_MainTex] { combine texture lerp (texture) previous }

  11.    }

  12. }
  13. // fallback: just main texture

  14. Subshader {

  15.    Pass {

  16.       SetTexture [_MainTex] { combine texture }

  17.    }

  18. }
  19. }
复制代码

作者: Chubbaz    时间: 2014-2-23 07:04
謝謝你的分享!教程
作者: 蜗牛    时间: 2014-2-23 11:28
谢谢 共享 。。。。。。。。。
作者: kikkik7000    时间: 2014-2-23 18:38
Thanks for sharing !
作者: BlueGem    时间: 2014-2-24 16:21
感谢分享




欢迎光临 纳金网 (http://wwww.narkii.com/club/) Powered by Discuz! X2.5