Initial implementation of texturing