when I write uniformBuffer in shader like this.
uniform Material {
uniform vec4 u_DiffuseColor;
uniform vec4 u_TilingOffset;
uniform vec3 u_MaterialSpecular;
uniform float u_AlphaTestValue;
uniform float u_Shininess;
};
gl.getProgramParameter(program, gl.ACTIVE_UNIFORMS) and gl.getActiveUniform(program, i) still contaion uniformBuffer item( for example u_DiffuseColor,it's redundant!), the only one thing I found is gl.getUniformLocation(program, uniName) will return null.
is there another better way i can get uniforms not include uniformBuffer item,because the i should dispose them with two different way.
How can I find a list of all the uniforms in OpenGL es 2.0 vertex shader pro Maybe this is not best way when have uniformBuffer block in shader with opengles3.0