Automatic generation of virtual materials from real-world materials