Common Functions Core HLSL math and vector functions, each with a live visual demo. Abs Clamp & Saturate Cross Distance Dot Exp Floor & Ceil Fmod Frac Length Lerp Min/Max Negate Normalize Power Remap Sine & Cosine Smoothstep Sqrt Step