add texture support.