added multisided texture support