Change the lerp function to be more explicit.

This commit is contained in:
Pavel Krajcevski 2013-09-05 14:49:56 -04:00
parent b8e155e11c
commit a6e6138084

View file

@ -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;
}
}