Update materials API
Merge pull request #30 from shama/textures

Update materials API