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.48k stars 394 forks source link

GeometricPrimitive support for tangents #7

Closed walbourn closed 6 years ago

walbourn commented 8 years ago

Currently GeometricPrimitive only generates vertices with VertexPositionNormalTexture vertices. It should at a minimum support a way of generating and drawing with tangents as those are required for NormalMapEffect.

walbourn commented 6 years ago

Another option I'm exploring is to just make NormalMapEffect and PBREffect work without precomputed tangents per this article (and this followup blog post):

Chris­t­ian Schüler, “Normal Mapping without Precomputed Tangents”, ShaderX 5, Chap­ter 2.6, pp. 131 – 140