ncols and nrows are now variables.
Implemented GLSL-based clipping in the fragment shader.