Greased line with a standard material

Hi,

I am wondering how I can use a standard material in combination with a greased line.
In the docs it says, that I can use one, but I can only get it to work with a greased line material and this material has some options missing, that I would need.

I tried here to create a line without and with a material, but the one with a material is simply not shown.

For my purposes I would need these options:

material.disableLighting = true;
material.emissiveColor = colors[0];

Ok, I figured it out.

I am working with typescript in angular and the base material type doesn’t have these options.

Using it like that, solved it for me:

const material = line.material as StandardMaterial;
material.disableLighting = true;
material.emissiveColor = colors[0];
2 Likes