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
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.
*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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: