This PR adds new property: VFXProps.overlay.
It allows us to control the opacity of the original element.
By default, VFX-JS hides the original element by setting its opacity to 0.
However, in some cases you might want not to hide the original element.
overlay allows you to specify the opacity to be set explicitly.
This is useful when you want to show an effect on top of the original element.
This could also be used to avoid the scroll rag issue, if the shader is adding some decoration on the element, rather than replacing the element.
Changes
Add VFXProps.overlay
Set the opacity of the original element by VFXProps.overlay
This PR adds new property:
VFXProps.overlay
. It allows us to control the opacity of the original element.By default, VFX-JS hides the original element by setting its opacity to 0. However, in some cases you might want not to hide the original element.
overlay
allows you to specify the opacity to be set explicitly.This is useful when you want to show an effect on top of the original element. This could also be used to avoid the scroll rag issue, if the shader is adding some decoration on the element, rather than replacing the element.
Changes
VFXProps.overlay
VFXProps.overlay