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

Only sky is visible when rendering level to custom RenderTarget #953

Open
mortuusars opened this issue Feb 8, 2025 · 0 comments
Open

Only sky is visible when rendering level to custom RenderTarget #953

mortuusars opened this issue Feb 8, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@mortuusars
Copy link

Minecraft Version

1.21.1

KubeJS Version

2101.7.1-build.181

Rhino Version

2101.2.6-build.66

Architectury Version

0.0.0

Forge/Fabric Version

NeoForge 21.1.52

Describe your issue

Calling GameRenderer#renderLevel with custom RenderTarget (TextureTarget in my case) renders only the sky, level itself is not visible.
Affects my mod (Exposure) and panoramas (Minecraft#grabPanoramixScreenshot for example) and potentially others.

I've managed to fix it for my code by binding my renderTarget again after KubeJSGameClientEventHandler#worldRender using mixins. But that's likely not a good solution.

Crash report/logs

No response

@mortuusars mortuusars added the bug Something isn't working label Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant