Line Renderer Appears Semi-Transparent instead of White?

Hello, everyone. I gave an empty gameobject a line renderer component and didn’t change anything about it. I then used this code to set its color to white:

Line Renderer lr;

void Awake()
    {
        lr = GetComponent<LineRenderer>();
        lr.material.color = Color.white;
    }

However, the result was some sort of semi-transparent gray:

How would I make it as white as the cube or any other solid color? Thanks for your help!

Well, in the line renderer component of the gameObject it is attach to, you can add a material instead of a colour in the script.

Make a material and just make it white, then drag it into the tab called ‘Element 0’ which will change the colour to white, pure white