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
Also here's the problematic shader
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
then it fails to loadDefining DRAWBUFFERS in that way is unsupported behavior.
then why can't it tell you that?
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
That doesn't answer my question, if it's against spec then why is the error message "Unknown error loading Distant Horizons compatibility."?
:thonkwithshades:
You getting that error for defining DRAWBUFFERS like that?
Yep, that's honestly the worst part about this
@IMS any input on this?
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