KubeJS (Old)

KubeJS (Old)

3M Downloads

Only sky is visible when rendering level to custom RenderTarget

mortuusars opened this issue ยท 0 comments

commented

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