mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-23 12:53:46 +00:00
Change the lerp function to be more explicit.
This commit is contained in:
parent
b8e155e11c
commit
a6e6138084
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ namespace PVRTCC {
|
|||
int16 va = static_cast<int16>(pa.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