I am trying to set up two textures in my fragment shader, but I get this error if I try to set the corresponding uniform variables with
gl.uniform1i(getUniformLocation(program, "uTextureOne"), 0); and gl.uniform1i(getUniformLocation(program, "uTextureTwo"), 1); .
What does it mean? (I am using Chrome)
My shader looks like this:
"#ifdef GL_ES \r\n" + "precision mediump float; \r\n" + "#endif \r\n" + "uniform sampler2D uTextureOne; \r\n" + "uniform sampler2D uTextureTwo; \r\n" + "varying vec3 vOrgNormal; \r\n" + "void main(void) { \r\n" +
source share