Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drawing objects with drawTo using a mask filter seems to not work #1055

Open
jefvel opened this issue Mar 17, 2022 · 0 comments · May be fixed by #1056
Open

drawing objects with drawTo using a mask filter seems to not work #1055

jefvel opened this issue Mar 17, 2022 · 0 comments · May be fixed by #1056

Comments

@jefvel
Copy link
Contributor

jefvel commented Mar 17, 2022

I am trying to draw a bunch of objects to a single texture, each having a mask filter. It doesn't seem to work, since it results in an empty texture. Here's a reproducible sample.

It does work if I call drawTo in the update loop though, as seen in the sample.

rttmask.zip

*Edit
It does work if the object that is drawn is first added to the scene. To solve it currently I just add the object to the scene, draw it to texture, then remove it from the scene.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant