Texture rewrite still in progress.

See the previous update for the todo list.