GreasedLine and alpha

Hello,
I was wondering how to create a GreasedLine with alpha. Looks like all color parameters are Color3 and I was unable to find a dedicated alpha parameter.

Best regards,
Axel

1 Like

cc @roland

Meanwhile, I don’t think you can input color4 as single greasedLine colors. Roland will answer this.
However, if you want to use alpha on a ‘group’ of lines, what I do is I parent it to a node and use visibility for alpha. Might do the trick depending on your needs?

1 Like

I think the greasedLine constructor is reading the .r, .g, .b of the given colors, so it should work but without taking into consideration the alpha channel. I let Roland confirm this… :slight_smile:

1 Like

Yes, it works. I checked it. You can input color4, it’s just that… the alpha is ignored :grin:

1 Like

Hello!

Unfortunatelly GRL doesn’t directly support Color4 colors.

You can however use your custom RGBA color texture:

1 Like