dolphin/Source/Core
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
..
AudioCommon StripSpaces: only strip spaces 2022-07-25 18:40:12 -07:00
Common Merge pull request #10740 from Tilka/cxx20 2022-08-04 09:31:31 -04:00
Core Merge pull request #10768 from Pokechu22/dsp-hle-gba-class 2022-08-04 13:50:30 +01:00
DiscIO VolumeVerifier: enable fast hash functions by default 2022-08-02 22:23:49 -07:00
DolphinNoGUI Require frontend to initialize controllers 2022-07-17 14:03:04 +02:00
DolphinQt Merge pull request #10913 from shuffle2/vsnext 2022-08-03 14:21:53 -04:00
DolphinTool VolumeVerifier: enable fast hash functions by default 2022-08-02 22:23:49 -07:00
InputCommon Merge pull request #10889 from shuffle2/spng 2022-07-26 12:53:04 +02:00
MacUpdater CMakeLists: Replace tab characters with spaces 2022-01-16 15:20:40 -08:00
UICommon Move to C++20 for non-MSVC compilers 2022-07-30 23:35:53 +01:00
UpdaterCommon cmake: Don't use PCH with Qt6. 2022-05-22 01:19:44 +02:00
VideoBackends MTLUtil: Include TargetConditionals 2022-07-23 17:22:11 -04:00
VideoCommon Sanitize and use increased precision when normalizing light directions 2022-08-04 08:52:44 -07:00
WinUpdater replace zlib with zlib-ng 2022-07-24 14:33:37 -07:00
CMakeLists.txt CMakeLists: Add option to disable automatic update support 2022-03-18 03:04:51 -04:00
DolphinLib.ARM64.props msbuild: use default Project attrs 2022-04-27 15:26:43 -07:00
DolphinLib.props introduce wrapper for SHA1 functionality 2022-07-26 22:16:37 -07:00
DolphinLib.vcxproj msbuild: use default Project attrs 2022-04-27 15:26:43 -07:00
DolphinLib.vcxproj.user msbuild: use default Project attrs 2022-04-27 15:26:43 -07:00
DolphinLib.x64.props msbuild: use default Project attrs 2022-04-27 15:26:43 -07:00