From inside the shader I can't modify uniforms or attributes. Is there a way I could write a variable that I can use outside the shader?
My goal is to determine the lowest and the highest vertex on the z-axis. I could of course run through all the vertices in a for loop, but the shader runs through them anyway and is faster.