added depth format, 2D projection shader and reorder function of z index.
Added collision detection