Added texture abstraction.