Julien Sulpis @jsulpis.dev · Oct 20

I did some tests to fully understand the effect of premultiplied alpha combined with the gamma correction (linear RGB -> sRGB). It seems that the only right way to blend rgba colors is to mix them in linear RGB with premultiplied alpha, and then convert to sRGB. However ⬇️

1 likes 1 replies

?

Replies

Julien Sulpis · Oct 20

I see that #threejs has premultipliedAlpha false by default on their Material, so I'm not sure how they handle that throughout the render pipeline, especially with postprocessing. For my lib I think I'm going to assume premultiplied alpha everywhere, but I would be glad to get some feedback on this