Basic support for Texture extension

Supports EXTEND and REPEAT