LibSoftGPU: East-const interpolate

No functional changes.
This commit is contained in:
Jelle Raaijmakers 2022-04-29 14:57:25 +02:00 committed by Andreas Kling
parent 9a1364d784
commit dfb218f6a8
Notes: sideshowbarker 2024-07-17 11:18:10 +09:00

View file

@ -58,7 +58,7 @@ constexpr static f32x4 edge_function4(FloatVector2 const& a, FloatVector2 const&
}
template<typename T, typename U>
constexpr static auto interpolate(const T& v0, const T& v1, const T& v2, Vector3<U> const& barycentric_coords)
constexpr static auto interpolate(T const& v0, T const& v1, T const& v2, Vector3<U> const& barycentric_coords)
{
return v0 * barycentric_coords.x() + v1 * barycentric_coords.y() + v2 * barycentric_coords.z();
}