Compare commits

...

2 Commits

Author SHA1 Message Date
Samuele Lorefice
f1d1749c40 Merge branch 'ILGpu' 2025-04-07 07:59:37 +02:00
mm00
07c00117f1 Added directional blur for final image 2025-04-02 19:45:20 +02:00

View File

@@ -252,6 +252,8 @@ public static class Program {
where T : INumber<T>, IMultiplyOperators<T, float, T>, IAdditionOperators<T, T, T>
=> a * (1 - t) + b * t;
static Vector3 Lerp(Vector3 a, Vector3 b, float t) => a * (1 - t) + b * t;
static T Remap<T>(T value, T min, T max, T newMin, T newMax)
where T : INumber<T>, ISubtractionOperators<T, T, T>, IMultiplyOperators<T, T, T>, IAdditionOperators<T, T, T>
=> (value - min) / (max - min) * (newMax - newMin) + newMin;