Utility functions in material.
Material drawing

First half assed pass.

Getting texture coordinates to work the way I would expect them to work
is proving to be really difficult. On-line documentation isn't much help
either.