Pass pixel coordinates to vertex shader and other improvements