We need to export 2 textures: for image and for shadows map. It works in js code when we assign texture jpg to emissive and shadows jpg to lightmap.
Also we need to set custom properties for each material. Like type and so on.
How to do it directly in 3dmax?
Best regards, Viktor.