Hi! I have a problem with WebGL: anything in browser works fine but when I try to save image or use CCapture, it exports my canvas with transparent background instead of one I have. I have tried setting background using background('#FFFFFF');
, I have also tried creating rect with the size of canvas but it doesn’t help. I can find some articles saying that it is a common issue with WebGL, but I couldn’t find any working solutions to fix this in p5js.
1 Like
Looks like background works OK until I create a box
with transparent emissiveMaterial
. The background beyond this. Looks like the background below that box also becomes transparent.
1 Like