A library for defining and using materials