Added TextureWrapMode functionality.