Internal errors when loading shaders

I've run into two cases where Iris has an internal error while loading shaders that I'm working on. I've already posted one to the github issues (link: https://github.com/IrisShaders/Iris/issues/2598), but that has had no activity and I now have another error for another project. The only "error report" it gives is "Unknown error loading Distant Horizons compatibility.", and I've attached the log file. I'm using Minecraft 1.20.1, Iris 1.8.1+1.21.1-fabric, and Distant Horizons 2.2.1-a-1.21.1
GitHub
Issues · IrisShaders/Iris
A modern shaders mod for Minecraft compatible with existing OptiFine shader packs - Issues · IrisShaders/Iris
10 Replies
What42Pizza
What42PizzaOP5d ago
Also here's the problematic shader
What42Pizza
What42PizzaOP5d ago
Actually I've already found out how to cause this, it seems to break whenever DRAWBUFFERS isn't declared as it should be. If you add /* DRAWBUFFERS:0 */ then it works fine, but if you put
/*
DRAWBUFFERS:0
more text
*/
/*
DRAWBUFFERS:0
more text
*/
then it fails to load
hardester
hardester5d ago
Defining DRAWBUFFERS in that way is unsupported behavior.
What42Pizza
What42PizzaOP5d ago
then why can't it tell you that?
hardester
hardester5d ago
It's an Optifine spec, hidden away in Optifine's GitHub. The shaderLABS Discord server have resources for that. Here's an invite if you need more info: https://discord.gg/RpzWN9S
What42Pizza
What42PizzaOP5d ago
That doesn't answer my question, if it's against spec then why is the error message "Unknown error loading Distant Horizons compatibility."?
hardester
hardester5d ago
:thonkwithshades: You getting that error for defining DRAWBUFFERS like that?
What42Pizza
What42PizzaOP5d ago
Yep, that's honestly the worst part about this
hardester
hardester5d ago
@IMS any input on this?
What42Pizza
What42PizzaOP5d ago
Okay I just found another oddity, if I add #include "/lib/lighting/fshLighting.glsl" (instead of the correct #include "/lib/lighting/fsh_lighting.glsl", that also gives an internal error instead of a normal error. It's definitely a correct error this time (telling me that the file doesn't exist), but it's still a bit strange

Did you find this page helpful?