Closed sgrove closed 9 years ago
Fixed as of https://github.com/kovasb/gamma/commit/8de0284f777ef15505273ef526b6050ead604cdf
program now takes a second arg: (p/program shaders {:precision {:float :mediump}})
If we need to specify precision defaults separately for vertex vs fragment shaders, will open a ticket for that.
Changed the api to:
(p/program {:vertex-shader vs :fragment-shader fs :precision {:float :mediump}})
so its still just 1 argument. Not sure what I was thinking before.
I'm getting the error:
Uncaught Error: failed to compile fragment-shader:ERROR: 0:5: '' : No precision specified for (float)
from glsl:
from gamma:
While trying to produce the equivalent of: