MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / Smoothstep

Function Smoothstep

SampleFramework12/v1.00/SF12_Math.h:604–608  ·  view source on GitHub ↗

Smoothstep cubic interpolation

Source from the content-addressed store, hash-verified

602
603// Smoothstep cubic interpolation
604inline 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
610inline Float3 Pow(Float3 x, float y)
611{

Callers 1

FilterSmoothstep1DFunction · 0.85

Calls 1

SaturateFunction · 0.85

Tested by

no test coverage detected