(Mod) Is it possible to prevent shaderpack affecting OpenGL graphics?

I hope it's okay to post this here since it is related to Iris shaders in some way and question is more for developers or maintainers (edit: also asked in https://discord.com/channels/507304429255393322/807617488313516032/1322573345727709295) I'm developing a mod which draws some opengl graphics but let's just take these arrow trails for example. I noticed that certain shaders influence the opengl triangles and quads, some make them glow, some lose transparency, some don't render them at all, all sorts of weirdnesses. From a mod's perspective, is it possible to disable currently enabled shader to affect my custom shapes?
RenderSystem.setShader(GameRenderer::getPositionColorProgram); // Should something else go here?
RenderSystem.enableBlend();
RenderSystem.defaultBlendFunc();
RenderSystem.disableCull();
RenderSystem.setShader(GameRenderer::getPositionColorProgram); // Should something else go here?
RenderSystem.enableBlend();
RenderSystem.defaultBlendFunc();
RenderSystem.disableCull();
6 Replies
musava_ribica
musava_ribicaOP2mo ago
these two images for example (left: photon, right: BSL), notice how the trail is different
No description
No description
That Guy
That Guy2mo ago
I don't know much about OpenGL but could you write a statement in the shader code that ignores your mod or smth?
musava_ribica
musava_ribicaOP2mo ago
is it possible is what's I'm wondering too
That Guy
That Guy2mo ago
Sorry I don't know much about OpenGL so I can't help you with that
musava_ribica
musava_ribicaOP2mo ago
no worries
That Guy
That Guy2mo ago
@Slooshie Do you think this is possible?

Did you find this page helpful?