dolphin-emulator/Source
Pokechu22 8129874d11 Sanitize and use increased precision when normalizing light directions
This normalization was added in 02ac5e95c8, and changed to use floats in 4bf031c064.  The conversion to floats means that sometimes there is insufficient precision for the normalization process, which results in values of NaN or infinity.  Performing the whole process with doubles prevents that, but games also sometimes set the values to NaN or infinity directly (possibly accidentally due to the values not being initialized due to them not being used in the current configuration?).

The version of Mesa currently in use on FifoCI (20.3.5) has issues with NaN.  Although this bug has been fixed (b3f3287eac in 21.2.0), FifoCI is stuck with the older version.

This change may or may not be incorrect, but it should result in the same behavior as already present in Dolphin, while working around the Mesa bug.
2022-08-04 08:52:44 -07:00
..
Android Merge pull request #10856 from JosJuice/android-tv-user-data-2 2022-08-03 20:24:54 -04:00
Core Sanitize and use increased precision when normalizing light directions 2022-08-04 08:52:44 -07:00
DSPSpy DSP LLE Recompiler: Fix LOOP and BLOOP when the counter is between 0x8001 and 0xFFFF 2022-06-05 19:34:31 -07:00
DSPTool DSPTool: Exit with status 1 if binary comparison fails 2022-06-14 12:22:06 -07:00
PCH update min windows sdk to 10.0.22621 2022-06-02 15:53:29 -07:00
UnitTests Merge pull request #10883 from Pokechu22/pi-fifo-reset-gp-fifo 2022-07-31 17:06:37 +02:00
VSProps msbuild: set PreferredToolArchitecture based on host OS arch 2022-07-30 11:01:47 -07:00
.clang-format Replace Cpp11 (A Deprecated alias for Latest) in .clang-format 2022-06-22 08:57:32 +10:00
CMakeLists.txt Move to C++20 for non-MSVC compilers 2022-07-30 23:35:53 +01:00
dolphin-emu.sln replace libpng with libspng 2022-07-25 18:32:16 -07:00