I have a fragment shader which is failing to compile in a WebGL 2 context:
#version 300 es
precision highp float;
uniform isampler2D tex_in;
out vec2 outColor;
void main() {
outColor = vec2(0.0, 0.0);
}
When I gl.compileShader
this shader, gl.getShaderParameter(glFragmentShader, GL.COMPILE_STATUS)
returns false
. If I change isampler2D
to sampler2D
, the compile succeeds instead.
According to the webgl 2 quick reference, isampler2D
is a supported keyword. What am I doing wrong?