Tengo un shader de fragmento con los siguientes atributos:retorno glGetUniformLocation -1 OpenGL ES (iPhone)
varying highp vec2 coordinate;
precision mediump float;
uniform sampler2D videoframe;
uniform sampler2D videosprite;
uniform vec4 mask;
uniform float threshold;
estoy recibiendo sus ubicaciones y establecer posteriormente las:
_frame = glGetUniformLocation(_program, "videoframe");
_sprite = glGetUniformLocation(_program, "videosprite");
_mask = glGetUniformLocation(_program, "mask");
_threshold = glGetUniformLocation(_program, "threshold");
NSLog(@"%i %i %i %i", _frame, _sprite, _mask, _threshold);
Sin embargo, el registro revela: 0 2 1 -1
De la documentación, veo que -1 (el umbral uniforme) significa que falló. ¿Por qué está fallando? Gracias
Wow ... aunque sabía esto, gracias por el recordatorio. Ese era el problema ... – 0xSina