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
No description
20 Replies
TelepathicGrunt
TelepathicGruntOP2y ago
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
No description
TheNukeLore
TheNukeLore2y ago
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
IMS
IMS2y ago
not supported let me link why
TheNukeLore
TheNukeLore2y ago
Isn’t there a way I forgot the name
IMS
IMS2y ago
no
TheNukeLore
TheNukeLore2y ago
It just won’t allow shader affects to be applied to it
IMS
IMS2y ago
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
TheNukeLore
TheNukeLore2y ago
It was used for that portal mod one time IMS
IMS
IMS2y ago
immersive portals? that does something completely different
TheNukeLore
TheNukeLore2y ago
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
Pepper
Pepper2y ago
Using a separate framebuffer is one way to circumvent this limitation
TheNukeLore
TheNukeLore2y ago
That A different frame buffer
IMS
IMS2y ago
yes, but it won't blend properly
TheNukeLore
TheNukeLore2y ago
It has its issues But it would “work”
IMS
IMS2y ago
i mean
Pepper
Pepper2y ago
That and also doing it for chunk geometry is not fun
IMS
IMS2y ago
it might actually it'd just be incredibly stupidly bad
TheNukeLore
TheNukeLore2y ago
It was done for that one portals mod
TelepathicGrunt
TelepathicGruntOP2y ago
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
Pepper
Pepper2y ago
Changing rendering only when Iris is active also works
Want results from more Discord servers?
Add your server