Use a Filter as MeshMaterial #7237
Unanswered
nuthinking
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my project I use many filters and I have a separate codebase where I write/test them.
Some of them simply draw and I use them to paint on transparent, basically as if they were
MeshMaterial
but obviously set insprite.filters
. This creates problems when changing the geometry of the sprite (for instance rotation). To better manage their geometry I should convert theseSprite(transparent)+Filter
toMesh+MeshMaterial
. Martin from Slack showed me how to do this.To keep my workflow sane though, I really would benefit if these
MeshMaterial
could also work asFilter
in my separate codebase. Is there a way aFilter
can also work asMeshMaterial
? Because both extendShader
I guess it is only a matter of setting the right uniforms and perhaps override a couple of methods. Any pointers? I'm currently a bit lost. Thanks 🙏Beta Was this translation helpful? Give feedback.
All reactions