alexozer / glsl-arb-prec

A mini-library for performing arbitrary-precision arithmetic in OpenGL ES Shader Language.
19 stars 2 forks source link

Other Data Types #1

Open Zi7ar21 opened 3 years ago

Zi7ar21 commented 3 years ago

Currently this only replicates floats but it would be cool if you could do vectors. Also, other data types like integers have a limit to the maximum value they can hold and so an arbitrary precision integer would be cool. I know this library isn't for anything serious, but it sure is cool. I am currently trying to make a Mandelbrot Set on Shadertoy with it :)

Zi7ar21 commented 3 years ago

Also, I just realized there is no way to convert an arbitrary value back to a regular float.

Zi7ar21 commented 3 years ago

https://www.shadertoy.com/view/fs33zM