glitches when trying to render twice with shader

Hi, I'm the developer of Stereopsis mod. And I'm having issue trying to make shaders work with my mod. What the mod do is basically render two buffers with one has left offset and other has right offset. But if enabled with shader, the first render slightly glitches and the second glitches alot (See attachment 3) For context, the first render uses original matrices that get passed into GameRenderer.renderWorld() method, and will end up at the right side of the screen; the second render uses a new matrices and will end up at the left side. source Does anyone know what caused the glitches? Shader: Solas Shader V2.0 [BETA 0.6b] Attachment 1: shader runs normally Attachment 2: my mod runs normally Attachment 3: glitches with both enabled (sorry for the bad framerate)
Modrinth
Stereopsis - Minecraft Mod
A mod that can render stereopsis, spatial illusion without VR glasses/headset.
Modrinth
Solas Shader - Minecraft Shader
A good performing fantasy stylised shaderpack with colored lighting and fancy volumetrics
GitHub
Stereopsis/src/main/java/io/github/amelonrind/stereopsis/mixin/Mixi...
A mod that can render stereopsis, spatial illusion without VR glasses/headset. - aMelonRind/Stereopsis
No description
No description
3 Replies
Melo
Melo8mo ago
found a magic fix: render on cache framebuffer instead of the first buffer, then blit to the first buffer after second render is done. have no idea why that would work
hardester
hardester8mo ago
Since I'm not a mod developer, I can't give input on this. You might probably get better support in #software-and-tech if you want to look into why things are happening the way it is, and how to properly and/or optimally fix it.
Melo
Melo8mo ago
Thanks. I thought that's for only iris devs. I'm fine with the magic fix rn since I don't expect the mod to be fully compatible with shader pack anyways.
Want results from more Discord servers?
Add your server