You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, first of all thanks for awesome work with layers and lighting.
I'm trying to migrate my project on a new version of pixi-layers and pixi-lighting and got some issue.
My application consists of several parts:
rootStage (PIXI.display.Stage) - just a rootContainer.
bgStage (PIXI.Container) - container with a background and some sprites on it without any effects.
mainStage (PIXI.display.Stage) - this one is using Pixi-lights.
So, i've got some issue with mainStage opacity, I can't understand why is this happening and tried to use layers, groups, change bgStage type to layer or stage, nothing fix it.
Yep, that issue is known, that is how lights actually work, they are transparent, applied on black background! If you look at math formulas, its all there.
vardiffuseBlackSprite=newPIXI.Sprite(diffuseLayer.getRenderTexture());diffuseBlackSprite.tint=0;// without the black sprite, lighted elements will be transparent to background. Try remove that linestage.addChild(diffuseBlackSprite);
Hello, first of all thanks for awesome work with layers and lighting.
I'm trying to migrate my project on a new version of pixi-layers and pixi-lighting and got some issue.
My application consists of several parts:
So, i've got some issue with mainStage opacity, I can't understand why is this happening and tried to use layers, groups, change bgStage type to layer or stage, nothing fix it.
Can you help me?
Here is example:
https://codepen.io/Fire7/pen/zaPKNQ
So, background and bunny should not be visible
The text was updated successfully, but these errors were encountered: