Skip to content

Commit

Permalink
add versions of mix
Browse files Browse the repository at this point in the history
  • Loading branch information
wtholliday committed May 29, 2024
1 parent aab820e commit b1c53a9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/vger/metal_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,12 @@ inline float2 mix(float2 a, float2 b, float t) {
return (1-t)*a + t*b;
}

inline float3 mix(float3 a, float3 b, float t) {
return (1-t)*a + t*b;
}

inline float4 mix(float4 a, float4 b, float t) {
return (1-t)*a + t*b;
}

#endif

0 comments on commit b1c53a9

Please sign in to comment.