added some basic texturing functionality to materials