(一)、习题答案

1、EXERCISE1

  查看不同的FresnelR0,Roughness对光线和反射产生的影响,并使圆柱体跟立方体反射周围环境,如下图所示。

Introduction to 3D Game Programming with Directx12 Chapter18

2、EXERCISE2

  需要利用texassembel工具生成cubemap,结果如下图所示:

Introduction to 3D Game Programming with Directx12 Chapter18

3、EXERCISE3

  利用snell折射定率来处理折射问题。

Introduction to 3D Game Programming with Directx12 Chapter18

eta=0.9

Introduction to 3D Game Programming with Directx12 Chapter18

etq=0.95

4、EXERCISE4

  模糊cube map的方法有很多,最常用的有IBL(Image-based Lighting)、模糊Cube map,本习题我们采用简单的模糊cube map的方法,模糊cube map可以离线处理,从而不浪费处理时间。

Introduction to 3D Game Programming with Directx12 Chapter18

(二)、源码下载

本章习题解答源码下载 习题源码

相关文章: