I am trying to create a colorful light beam similar to a laser (with a gradient in the middle) using ColorRamp, Mix Shader and Layer Weight.
I would like to make this beam as much as possible transparent so that it is still possible to clearly see the structure below, but I would like to keep this nice gradient of the light and the Glare effect I have added in Compositing.
I have already added a Transparent BSDF node and tried with the Math node with division, but the problem is that - when I add it after the ColorRamp - all the alpha values are divided accordingly and I loose this gradient effect in the final rendered image.