question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mask ignored when rendering on RenderTexture (Firefox Linux)

See original GitHub issue

I’ve added a masked sprite to a container, when I render it on screen the mask works correctly but when I try to render it on a RenderTexture the mask is ignored. Problem is, I tested it in some environments, here’s the list:

Windows 10 Manjaro KDE
Chrome Ok Ok
Firefox Ok Bug

I have no clue on the bug’s origin. I’ve created a simple playground, in the upper half you can see the pixi.js behaviour and in the lower half you can see the RenderTexture behaviour.

Expected Behavior

image

Current Behavior

image

Possible Solution

I don’t know of any, maybe using filters will bypass the bug but I haven’t checked.

Steps to Reproduce

Get linux + Firefox (I think?) and use this link below. https://www.pixiplayground.com/#/edit/iJ6CBxiP5PGlzGXt7zi1s

Environment

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:28 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
neovatarcommented, Nov 22, 2021
  1. This should fail (w/o fix): https://www.pixiplayground.com/#/edit/dKPnH5fCiFNzBvhhl9Hq5
  2. This should succeed (w/ fix): https://www.pixiplayground.com/#/edit/ILIR4vP9hu6iYbo_xUO6d
  1. fails
  2. succeeds

Ubuntu 20.04 with both:

  • Firefox 94.0
  • Firefox Nightly 96.0a1 (2021-11-19)
1reaction
domis86commented, Nov 20, 2021
1. This should fail (w/o fix): https://www.pixiplayground.com/#/edit/dKPnH5fCiFNzBvhhl9Hq5

2. This should succeed (w/ fix): https://www.pixiplayground.com/#/edit/ILIR4vP9hu6iYbo_xUO6d

@dev7355608 confirmed on on my Ubuntu 20 (Firefox 86)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mask ignored when rendering on RenderTexture (Firefox Linux)
It seems like the bug only shows up on the first time that the scene is drawn to the RenderTexture, so drawing a...
Read more >
Firefox (linux) not rendering anything - Mozilla Support
The firefox installation on my desktop is not able to render anything. Even the about:preferences window is not able to show anything both ......
Read more >
Unity Camear.Render() UI Mask invalid
If renderTexture has image with ui mask, the mask effect on png invalid game show: camera.Render show: Here is my camer render code:....
Read more >
WebGPU - W3C
WebGPU exposes an API for performing operations, such as rendering and computation, ... needs fewer than 4 channels, the additional channels are ignored....
Read more >
Targeted In-Game Style Transfer Tutorial for Unity - Intel
Set Style Depth Culling Mask ... You can ignore these. ... Lastly, release the temporary RenderTexture for the copy of the current frame....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found