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

Allow external plugins to intervene more deeply in the rendering process of Sprite (Mesh2d). #13229

Open
443eb9 opened this issue May 4, 2024 · 0 comments
Labels
A-Rendering Drawing game state to the screen C-Enhancement A new feature

Comments

@443eb9
Copy link

443eb9 commented May 4, 2024

What problem does this solve or what need does it fill?

I'm now trying to create a 2d lighting plugin, but I encountered a very tricky problem: I want to add something similar to normal mapping on sprite/mesh2d to achieve a PBR-like effect. However, if I want to render another independent texture on a separate material from sprite/mesh2d, I need to copy and paste the entire rendering process again.

What solution would you like?

I'm not entirely clear on the specific solution, but I hope to allow Sprite/mesh2d to enter an additional RenderPhase during the Queue stage, and to allow for custom draw functions as well as custom fragment shaders.

What alternative(s) have you considered?

At least make all structs that are related to the sprite/mesh2d rendering public, so I can grab these processed data directly.

Additional context

None.

@443eb9 443eb9 added C-Enhancement A new feature S-Needs-Triage This issue needs to be labelled labels May 4, 2024
@james7132 james7132 added A-Rendering Drawing game state to the screen and removed S-Needs-Triage This issue needs to be labelled labels May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Enhancement A new feature
Projects
None yet
Development

No branches or pull requests

2 participants