stackgl / glsl-transpiler

Transpile GLSL to JS
http://stackgl.github.io/glsl-transpiler/
175 stars 21 forks source link

Float32 emulation #45

Open dy opened 5 years ago

dy commented 5 years ago

Now values/operations converted from GLSL get increased precision, since JS performs float64 math, whereas OpenGL does float32. So in order to reproduce errors it may be necessary to convert operations to float32, for that purpose to-float32 may come handy.