mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
LibSoftGPU: East-const interpolate
No functional changes.
This commit is contained in:
parent
9a1364d784
commit
dfb218f6a8
Notes:
sideshowbarker
2024-07-17 11:18:10 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/dfb218f6a8 Pull-request: https://github.com/SerenityOS/serenity/pull/13835 Reviewed-by: https://github.com/sunverwerth ✅
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue