I have several GLSL fragment shaders for which I can pretty much guarantee that they are consistent #version 120. They use standard non-ES values and they don’t have any pragmas. for ES.
I really want to do a web preview for them using WebGL. Preview will not be used on mobile devices. Is it possible? Is the feature set open to GLSL shaders in WebGL limited compared to this version of GLSL? Are there differences in accuracy?
I already tried playing with THREE.js, but that doesn't really rub it in, since it loads my shader code before downloading it to the GPU (which I can't do).
In short: is the GLSL specification enough to run these shaders? .. because if that’s not what I am doing, it’s not possible and I just have to give it up.
Julik source
share