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