GPU: Normalize 0 to 1 always in software lighting.

See #14167.  This seems to be consistent.
This commit is contained in:
Unknown W. Brackets committed 2021-02-27 23:51:45 -08:00
1 parent 5d4d8ab418
commit 2f63f9999d
6 files changed
+50 -20

No files matched your search

+2 -1
View File
@@ -18,6 +18,7 @@
#include <cmath>
#include <algorithm>
#include "Common/CPUDetect.h"
#include "Common/Math/math_util.h"
#include "Common/MemoryUtil.h"
#include "Core/Config.h"
@@ -256,7 +257,7 @@ VertexData TransformUnit::ReadVertex(VertexReader& vreader)
break;
case GE_PROJMAP_NORMALIZED_NORMAL:
source = vertex.normal.Normalized();
source = vertex.normal.NormalizedOr001(cpu_info.bSSE4_1);
break;
case GE_PROJMAP_NORMAL: