Add support for custom material properties

These are specified in the material name; this is kind of hack, but
simple and cross-platform.