Closed jonlepage closed 6 years ago
ho ok solved, i need to remember this hack black bg for all elements
const blackTextureVideo = new PIXI.Sprite(PIXI.Texture.WHITE);
blackTextureVideo.tint = 0;
// asign group display
blackTextureVideo.parentGroup = PIXI.lights.normalGroup;
video_sprite.parentGroup = PIXI.lights.diffuseGroup;
cage.parentGroup = $displayGroup.group[0];
cage.zIndex = 1;
// parenting
cage.addChild(blackTextureVideo,video_sprite);
this.addChild(cage);
Good :)
hey, am not remember if it possible or how to do a sorting if i have a simple video element (Background) and if a need rendering sprites elements hover video, with
diffuse,normal
.What i can do for make video rendering below all elements diffuse and normal?
example script here, in order i create
createBackground
andcreateTitleLogo
: Asignet toparentGroup
. But thecage
of the title seem are rendering below the cage of video ? maybe i do something wrong or am not remember the triks.here how the stage look like in children
thanks