Introduction to 3D Game Programming with Directx12 Chapter20
(一)、习题答案
1、EXERCISE1
使用投影纹理模拟投影机效果,如下:
2、EXERCISE2
使用截断纹理地址寻址模式,本习题结果如下:
3、EXERCISE3
使用聚光灯,本习题结果如下:
4、EXERCISE4
使用透视投影,效果如下:
5、EXERCISE5
越大的阴影图尺寸,效果越精细,越小的阴影图尺寸,效果越粗糙,如下:
6、EXERCISE8
使用点采样过滤,不使用PCF,在阴影的边沿很出现明显的硬边和阶梯锯齿,本习题结果如下:
7、EXERCISE9
关闭坡度值,可以看到明显的条纹,本习题结果如下:
8、EXERCISE10
过大的坡度值,会出现peter-panning 现象,本习题结果如下: