MZ Cleanest way to make Window objects no longer mask each other?

By the default on RMMZ, Window objects (like Window_BattleStatus, Window_BattleLog, etc) mask each other.

That is, if two Window objects overlap on the screen, only the one in the top appears - even if they are fully transparent, the one behind disappears in the area they overlap.

I've noticed that the VisuStella Core plugin has an function to disable this behavior, but that plugin is bloated with a thousand different functions and the code is obfuscated.

I've been trying to figure out a clean way to change this without changing too much, as I have the impression that this is probably something easy that I'm missing on Pixi.JS somewhere, but well... I'm really missing it, it seems.

Attached is an example - in this example, my Window_BattleStatus overlaps the Window_BattleLog on the top left of the screen, completely masking it on that area. While that's not the positioning I intend to use for the BattleLog anyway, I do want to disable that masking behavior.
Hey take a look at WindowLayer.prototype.renderWebGL in rpg_core
There's some code in there that adds a scissor mask to all the windows
Depending on your aim you could either add a bool to disable that for certain windows or you could just have the window layer use the default rendering code if you never want the masking
Hope that helps
Hey take a look at WindowLayer.prototype.renderWebGL in rpg_core
There's some code in there that adds a scissor mask to all the windows
Depending on your aim you could either add a bool to disable that for certain windows or you could just have the window layer use the default rendering code if you never want the masking
Hope that helps
Helped a lot, thanks!

Update: I just removed the whole WindowLayer.prototype.render function (so it no longer overrides the PIXI.Container render), as it sole purpose seemed to be to add this masking effect. It's working exactly like I wanted it to now.

Original thread: https://forums.rpgmakerweb.com/threads/cleanest-way-to-make-window-objects-no-longer-mask-each-other.165732/