I made a "small" #Shadertoy #GLSL thingy that can generate implicit functions with equal thickness (Thanks for the magic of dual numbers). Link: https://www.shadertoy.com/view/wcyGRw
It features a large set of functions:
- Elementary operations
> +, -, *, /
- Exponentials
> exp, log
- Powers and roots
> sqrt, cbrt, pow (TODO)
- Sign related
> step, sgn, ramp, abs
Rounding
> floor, round, ceil
Trigonometry:
> sin, cos, tan, sec, csc, cot,
Hyperbolics:
> sinh, cosh, tanh, sech, csch, coth
Inverse trigonometry:
> asin, acos, atan, asec, acsc, acot
Inverse hyperbolics
> asinh, acosh, atanh, asech, acsch, acoth
It only has some bugs with functions that have poles. For example y=tan(x) produces straight lines at each pole.
#programming #shaders #math #functions #derivative #dualnumbers #realnumbers