The Iris ProjectTIP
The Iris Project13mo ago
7 replies
musava_ribica

(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();
Was this page helpful?