microsoft / DirectXTK12

The DirectX Tool Kit (aka DirectXTK12) is a collection of helper classes for writing DirectX 12 code in C++
https://walbourn.github.io/directx-tool-kit-for-directx-12/
MIT License
1.5k stars 404 forks source link

Normal-mapping without precomputed tangents #26

Closed walbourn closed 6 years ago

walbourn commented 6 years ago

This modifies DebugEffect, NormalMapEffect, and PBREffect so they no longer require explicit per-vertex tangents. Instead, the reconstruction is done in the pixel shader per:

Christian Schüler, "Normal Mapping without Precomputed Tangents", ShaderX 5, Chapter 2.6, pp. 131 – 140

See also follow-up blog post

walbourn commented 6 years ago

These changes address issues 7 and 12