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

DebugEffect #25

Closed walbourn closed 6 years ago

walbourn commented 6 years ago

Adds a debug effect to the library to make it easier to visualize normal, tangents, and bi-tangents.

The 'default' mode is a simple hemispherical ambient lighting is can be useful for debugging geometry without lighting problems that is still a 3D shape (unlike a single ambient color). This will also be useful for a future extension of DebugEffect that will add normals/tangent frame rendering using the Geometry Shader.

The fact that this effect requires tangents might seem a little restrictive, but that should be resolved by the tangents-in-the-pixel shader solution work in progress