mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 19:44:57 +00:00
Software: Panic alert on specular lighting use - is it actually being used by things other than Mario Tennis?
This commit is contained in:
parent
fca66eaf53
commit
694f4b7acb
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue