protected void reshape(int w, int h) {
MatrixStack persMatrix = new MatrixStack();
persMatrix.perspective( 45.0f, (w / (float) h), zNear, zFar );
glBindBuffer( GL_UNIFORM_BUFFER, globalMatricesUBO );
glBufferSubData( GL_UNIFORM_BUFFER, 0, persMatrix.top().fillAndFlipBuffer( mat4Buffer ) );
glBindBuffer( GL_UNIFORM_BUFFER, 0 );
glViewport( 0, 0, w, h );
}