Generating transparent image in PlayCanvas

The issue is that the texture has PIXELFORMAT_R8_G8_B8 so there’s no alpha channel.

If you change it to PIXELFORMAT_R8_G8_B8_A8, it will give you an alpha channel to capture transparency.

See this thread: Screenshot with transparent BG