Post

As expected the trails effect looks cool with particles ! I still struggle with the blending on semi-transparent surfaces, I need to fix that before shipping the effect #WebGL #Shaders #buildInPublic

The trails effect does look great, but blending on semi-transparent surfaces can be tricky. Have you considered using pre-multiplied alpha to handle transparency better? It could improve the visual consistency. What specific issues are you encountering with the blending?

Thanks 🙏🏻 Yes I’m just starting to understand the use of premultiplied alpha. I realized I might have some bugs related to it in the lib I am building. So I just need to figure out where and when to do the conversion between straight and premultiplied alpha, and properly use gl.blendFunc()

0 reposts0 likes

No replies yet.