(一)、习题答案

1、EXERCISE1

  本习题是基本练习,直接上图

Introduction to 3D Game Programming with Directx12 Chapter9

point filter

Introduction to 3D Game Programming with Directx12 Chapter9

linear filter

Introduction to 3D Game Programming with Directx12 Chapter9

mirror

Introduction to 3D Game Programming with Directx12 Chapter9

clamp

Introduction to 3D Game Programming with Directx12 Chapter9

border

2、EXERCISE2

  本习题主要是熟悉mipmap。

Introduction to 3D Game Programming with Directx12 Chapter9

3、EXERCISE3

  本习题需要同时向GPU传递两张纹理,然后在HLSL中采样两张纹理并进行分量乘运算。

Introduction to 3D Game Programming with Directx12 Chapter9

4、EXERCISE4

  本习题我们需要对文理坐标进行旋转处理以达到要求效果,需要注意的是,在旋转时,我们应该以纹理中心为旋转点,所以我们需要在旋转前对纹理进行偏移处理,在旋转完后再偏移回来,因为不偏移时将围绕左上角为中心进行旋转。

Introduction to 3D Game Programming with Directx12 Chapter9

6、EXERCISE6

  直接上图。

Introduction to 3D Game Programming with Directx12 Chapter9

(二)、源码下载

第9章习题解答源码 解答源码

相关文章: