assign mat to sprite