Iris support for custom core shaders in mods
I am writing some core shaders for some blocks in my mod for 1.20 MC. Someone just came to me and pointed out that Iris will explicitly not render my shaders at all and make my blocks invisible.
Is this true? And if so, why was such an incredibly limiting and handicapping decision made? These core shaders are pretty critical to the new blocks I am adding and without them, I cannot achieve the end vision I desired for my blocks. And I don't have the ability to make a brand new Iris specific shader as I could barely get by making just these core shaders with lots of help from others. An Iris specific shader would be over the limit for work I can do
20 Replies
To be clear, this is one kind of block I need the shader for. I can't really do the effects without the core shader
It’s simply not possible to get core shaders working with the pipeline
The original optifine pipeline was never really made for that, heck even canvas struggles and sodium doesn’t support editing of core shaders
There is a method to getting some affects working but it won’t render right with shaders
@IMS likely knows
not supported
let me link why
Isn’t there a way
I forgot the name
no
It just won’t allow shader affects to be applied to it
@TelepathicGrunt https://github.com/IrisShaders/Iris/blob/1.19.4/docs/development/compatibility/core-shaders.md
GitHub
Iris/core-shaders.md at 1.19.4 · IrisShaders/Iris
(WIP) A modern shaders mod for Minecraft intended to be compatible with existing OptiFine shader packs - Iris/core-shaders.md at 1.19.4 · IrisShaders/Iris
It was used for that portal mod one time IMS
immersive portals?
that does something completely different
Not immersive
A different portals mod
Also figura has had much talk about it
I legit can’t remember
Putting it on a different layer or something, so it renders after all the shader stuff is applied
Using a separate framebuffer is one way to circumvent this limitation
That
A different frame buffer
yes, but it won't blend properly
It has its issues
But it would “work”
i mean
That and also doing it for chunk geometry is not fun
it might actually
it'd just be incredibly stupidly bad
It was done for that one portals mod
blend in what way? Layers in the core shader? Or blend as in transparency issues? (kinda like clouds behind honey blocks)
Oh after shader stuff. So if player had say a green-tint shader across the screen for whatever reason, me going on a different framebuffer would make my block not have that tint for its shader look and could look odd. Hmm
for the kind of blocks I'm doing, that might be ok. Either that or I have a backup dull normal texture just barely under the render positions that is only visible when iris nukes my shader rendering
Changing rendering only when Iris is active also works