There are two things:
- the shader material used by the line mesh does not support the “store effect on sub-mesh” option, so you should pass
falseto the 4ith parameter of theShaderMaterialconstructor - the
LineMeshclass expects the color to be aColor4
Here’s the corrected PG: