[SOLVED] How to remove black background from Live2D join scene?

According to the question that I was asking both here and in steam community.

http://steamcommunity.com/app/495480/discussions/1/2906376154317693850/


https://forums.rpgmakerweb.com/index.php?threads/how-to-make-the-game-canvas-transparent.88516/

I got some progress. Thanks to Kentou via Steam.
However, there still is a problem.

Everything work fine when I use common action in VNM such as 'Show Message' and 'Show Picture'. Even I use 'Character Join Scene'(Not Live2D), the background is still transparent.

sSvwQ0z.png


But then I use 'Live2D Join Scene', the black background appear again.
And it's not disappear until I use 'Live2D Exit Scene'. How can I get rid of this black background? Any suggestion,please?
NeUtzkG.png
Finally, I get rid of it.
In ENGINE.js, there is a function called draw_ which used to draw the live2D character.
The solution is to add $gl.clearColor(0, 0, 0, 0) as the end of this function.
I know this is not the best practice but I try my best.

AZlZ0CL.png


Original thread: https://forums.rpgmakerweb.com/threads/solved-how-to-remove-black-background-from-live2d-join-scene.88676/