(一)、习题答案

1、EXERCISE1

  使用投影纹理模拟投影机效果,如下:

Introduction to 3D Game Programming with Directx12 Chapter20

Introduction to 3D Game Programming with Directx12 Chapter20

2、EXERCISE2

  使用截断纹理地址寻址模式,本习题结果如下:

Introduction to 3D Game Programming with Directx12 Chapter20

3、EXERCISE3

  使用聚光灯,本习题结果如下:

Introduction to 3D Game Programming with Directx12 Chapter20

4、EXERCISE4

  使用透视投影,效果如下:

Introduction to 3D Game Programming with Directx12 Chapter20

5、EXERCISE5

  越大的阴影图尺寸,效果越精细,越小的阴影图尺寸,效果越粗糙,如下:

Introduction to 3D Game Programming with Directx12 Chapter20

4096x4096

Introduction to 3D Game Programming with Directx12 Chapter20

256x256

6、EXERCISE8

  使用点采样过滤,不使用PCF,在阴影的边沿很出现明显的硬边和阶梯锯齿,本习题结果如下:

Introduction to 3D Game Programming with Directx12 Chapter20

7、EXERCISE9

  关闭坡度值,可以看到明显的条纹,本习题结果如下:

Introduction to 3D Game Programming with Directx12 Chapter20

8、EXERCISE10

  过大的坡度值,会出现peter-panning 现象,本习题结果如下:

Introduction to 3D Game Programming with Directx12 Chapter20

(二)、源码下载

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

相关文章:

  • 2021-07-26
  • 2021-07-29
  • 2021-06-17
  • 2021-09-08
  • 2021-10-15
  • 2021-07-16
  • 2021-07-27
  • 2022-12-23
猜你喜欢
  • 2022-01-01
  • 2021-07-20
  • 2021-11-30
  • 2021-12-20
  • 2021-09-22
  • 2021-04-30
  • 2021-11-29
相关资源
相似解决方案