fixed material mapping after three js update