Smoothstep cubic interpolation
| 602 | |
| 603 | // Smoothstep cubic interpolation |
| 604 | inline float Smoothstep(float start, float end, float x) |
| 605 | { |
| 606 | x = Saturate((x - start) / (end - start)); |
| 607 | return x * x * (3.0f - 2.0f * x); |
| 608 | } |
| 609 | |
| 610 | inline Float3 Pow(Float3 x, float y) |
| 611 | { |
no test coverage detected