Simple Cubemap Reflection

  Cubemap加在MainTex上,所以Property需要按如下定义:

  Simple Cubemap ReflectionSimple Cubemap Reflection

  注意_Cubemap的类型是CUBE。

  使用Cubemap,需要计算反射向量,Unity内置的worldRefl是一个可以直接使用的反射向量。

  Simple Cubemap Reflection

  反射向量的概念如下:

  Simple Cubemap Reflection

  由于有了worldRefl,cubemap的实现就很简单了,如下:

  Simple Cubemap Reflection

  

  

相关文章:

  • 2021-07-14
  • 2021-08-22
  • 2021-10-29
  • 2022-12-23
  • 2021-09-20
  • 2021-11-27
猜你喜欢
  • 2021-06-01
  • 2022-12-23
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
相关资源
相似解决方案