mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-23 22:21:27 +00:00
Change the lerp function to be more explicit.
This commit is contained in:
parent
b8e155e11c
commit
a6e6138084
|
@ -190,7 +190,7 @@ namespace PVRTCC {
|
||||||
int16 va = static_cast<int16>(pa.Component(c));
|
int16 va = static_cast<int16>(pa.Component(c));
|
||||||
int16 vb = static_cast<int16>(pb.Component(c));
|
int16 vb = static_cast<int16>(pb.Component(c));
|
||||||
|
|
||||||
result.Component(c) = va + ((vb - va) * lerpVal) / 8;
|
result.Component(c) = (va * (8 - lerpVal) + vb * lerpVal) / 8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue