The DirectX Tool Kit (aka DirectXTK12) is a collection of helper classes for writing DirectX 12 code in C++
1.47k
stars
393
forks
source link
EnvironmentMapEffect updated to support sphere and dual paraboloid environment maps #78
Closed
walbourn closed 4 years ago
EnvironmentMapEffect supports cubic environment maps only with an optional Fresnel effect.
Here I've added support for both spherical environment maps and dual-paraboloid environment maps.
The spherical and dual-paraboloid implementations support the same Fresnel effect controls.
To keep the number of shader permutations down, I only implement per-pixel-lighting for these two new map types.
For simplicity, dual-paraboloid environment maps are 2D texture arrays with 2 entries.