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)
image.png
image.png
Modrinth
A mod that can render stereopsis, spatial illusion without VR glasses/headset.
Modrinth
A good performing fantasy stylised shaderpack with colored lighting and fancy volumetrics
GitHub
A mod that can render stereopsis, spatial illusion without VR glasses/headset. - aMelonRind/Stereopsis
Was this page helpful?