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
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
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?
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…
Yes, it works. I checked it. You can input color4, it’s just that… the alpha is ignored
Hello!
Unfortunatelly GRL doesn’t directly support Color4
colors.
You can however use your custom RGBA color texture: