Thats weird, there is an index uniform in the shader. Anyway, try to remove the line
- kSmooth.set("index", texIndex);
from the draw() function and the line
- uniform int index;
from the shader, that variable is not used in the example , forgot to remove it ![]()
