I need to create a fading effect along the borders of a geometry, blending seamlessly with the background color.
My initial approach was to use the highlightLayer with the background color to achieve this effect. However, the result isn’t as pronounced as I needed.
Additionally, I’ve noticed that the setEffectIntensity method has an inverted effect is this expected?
Could anyone suggest how to amplify this fading effect? Alternatively, are there more effective techniques or tools within BabylonJS that could achieve a better result?
Thank you it is a pitty that there is no way to increase the samples for the blur (or at least I didn’t find how to do that) something like kernelsize.
You should try to set a smaller texture ratio in your highlight layer so the intermediate texture for the blur will have less resolution resulting in the feeling of a larger blur.