Closed zlac closed 2 years ago
Because canvas should be PMA
use a:
const renderer = new Renderer({ dpr: 2, alpha: true, premultipliedAlpha: true });
and you should know that in PMA mode all shader and blending should be in PMA too. this means that you should multiple rgb onto a
Awesome, thanks much for your fast reply :)
Thanks for the awesome job with this library!
I have a problem with transparent canvas and transparent objects. Here is an example
https://codepen.io/creativeinteractivemedia/pen/NWwMpYX
Semi transparent object (red plane with alpha 0.5) is over a non transparent object ( blue plane with alpha 1), the blue plane behind become transparent, on the part where is covered by red plane.
Any idea how to fix this?
Thanks