forked from: Texture Matrix

