fixed rendering and added materialMap (not implemented)