From 694f4b7acb1ab31d3e531fc77c73cab5fb892ebc Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Mon, 28 Feb 2022 12:11:17 -0800 Subject: [PATCH] Software: Panic alert on specular lighting use - is it actually being used by things other than Mario Tennis? --- Source/Core/VideoBackends/Software/TransformUnit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/VideoBackends/Software/TransformUnit.cpp b/Source/Core/VideoBackends/Software/TransformUnit.cpp index 8429a60a43..8897d1e367 100644 --- a/Source/Core/VideoBackends/Software/TransformUnit.cpp +++ b/Source/Core/VideoBackends/Software/TransformUnit.cpp @@ -225,6 +225,7 @@ static float CalculateLightAttn(const LightPointer* light, Vec3* _ldir, const Ve } case AttenuationFunc::Spec: { + PanicAlertFmt("Specular lighting in use!"); ldir = ldir.Normalized(); attn = (ldir * normal) >= 0.0 ? std::max(0.0f, light->dir * normal) : 0; Vec3 attLen = Vec3(1.0, attn, attn * attn);