Home
Fluent, shader-like extensions for Unity.Mathematics — noise, SDFs, fast math, and Burst job helpers in one using static.
Quick start¶
using static Unity.Mathematics.mathx;
float3 v = new float3(1, 2, 3);
return v.length().clamp(0, 10).normalize();
Every method lives on the single mathx partial class — one import and you're done.
Fluent chains¶
See the Fluent chains guide for .set(out x) and when to break a chain.
Feature overview¶
-
smoothstep, easing,smin/smax -
Simplex, Perlin, FBM, Worley, Voronoi
-
Primitives and CSG-style combinations
-
fsqrt,fastsine, approximations vsmath.* -
Function pointers, parallel jobs, noise fill
-
xxhash32,hash01, gradient hashes -
bounds,ray,color,byte*
Install¶
Available on OpenUPM and via Git URL — see Getting started.
Roadmap¶
- ✅ Fast functions, constants, Mathf translations
- ✅ Random, component logic, interpolation, matrices
- ✅ Noise, SDF, Jobify, hashing, vector builders
- ✅ Generic jobs and function iterators