| 17 | // FIXME: change order of lerp arguments, then remove this function |
| 18 | template<typename V> |
| 19 | __forceinline V lerpr(float t, const V& v0, const V& v1) { |
| 20 | return (1.0f-t)*v0 + t*v1; |
| 21 | } |
| 22 | |
| 23 | // ------------------------------------------------------- |
| 24 | // sRGB conversion functions |