Add material to mesh

Yes, you can. Copypaste the whole j3o file loader, make proper changes and use it instead original one. I did the same with j3m loader to handle loading DXT5nm compressed files and switching to another file when the driver does not support such compression.