The LineMesh
does not work with the standard / PBR material, you must provide a custom ShaderMaterial
if the default one does not suit you. That’s because this material has special requirements.
See Best way to keep dash size constant - #10 by Evgeni_Popov for more context.