Control HighlightLayer alpha

Is there a way to control alpha of a highlight layer? The use case is I want to animate the opacity of the highlight layer. Would appreciate any suggestions. Thanks.

You may try to use neutralColor parameter -HighlightLayer | Babylon.js Documentation

Here is the example with glow layer -
With highlight layer it will be basically the same, something like

var hl = new BABYLON.HighlightLayer("hl1", scene);
hl.neutralColor.a = 0;
1 Like

alpha should not work with higlights but can work with glow :slight_smile:

1 Like

Here we are: -

1 Like