At the moment only glsl version 100 appears to compile correctly. webgl2 uses glsl with version 300 es, which does not compile with glslx.
Here is a fragment shader example:
#version 300 es
precision highp float;
in vec2 v_st;
out vec4 color;
void main()
{
color = vec4(1.0, 1.0, 0.0, 1.0);
}
At the moment only glsl
version 100appears to compile correctly. webgl2 uses glsl withversion 300 es, which does not compile with glslx.Here is a fragment shader example: