Add simple texture mip-mapping.
Just with simple box-filter mip generation and z value mip determination.