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

Need Example of texturesPerObject Usage with BatchRendererPluginFactory.from #13

Open
devolonter opened this issue Oct 30, 2023 · 0 comments

Comments

@devolonter
Copy link

Hello,

I'm currently working with the BatchRendererPluginFactory.from utility in PixiJS to create a custom batch renderer. I've come across the texturesPerObject option, which I believe allows a single object to use multiple textures. However, I'm struggling to find a practical example or implementation detail on how to utilize this option.

Would anyone be able to provide or point me to an example of how to use the texturesPerObject option with BatchRendererPluginFactory.from?

Specifically, I'd like to know:

  • How to properly set multiple textures for a display object in the context of batching.
  • How to handle these textures in the custom shader and renderer logic.

Any guidance or references would be greatly appreciated. Thanks in advance!

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

No branches or pull requests

1 participant