© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
The Iris ProjectTIP
The Iris Project•16mo ago•
9 replies
tunaflsh

Error loading shaderpacks with Distant Horizons

I was wrong. I can replicate it. With just the following mods:
- sodium-fabric-0.6.0-beta.2+mc1.21.1.jar
- iris-fabric-1.8.0-beta.4+mc1.21.1.jar
- DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar
- authme-8.0.0+1.21.jar

The steps to replicate:
1. Launch Minecraft
2. Disable DH rendering and shaderpacks
3. Relaunch Minecraft
4. Join a server/start a world
5. Inside the world enable DH, then enable shaders
6. Get the error message
dh_terrain.fsh: dh_terrain.fsh: 0(364) : error C1503: undefined variable "dhProjection"
0(365) : error C1503: undefined variable "dhProjectionInverse"
dh_terrain.fsh: dh_terrain.fsh: 0(364) : error C1503: undefined variable "dhProjection"
0(365) : error C1503: undefined variable "dhProjectionInverse"

The undefined variables are different each time.

Minecraft version: 1.21
Fabric loader: 0.16.5-1.21

One way to work around this I found was, to repeatedly disable/enable DH and/or shaders.
Or a better way is to enable both despite the error message then relaunch the game and both will load fine.
The Iris Project banner
The Iris ProjectJoin
This server is all about the development and community around Iris Shaders!
71,314Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Iris error with distant horizons
The Iris ProjectTIPThe Iris Project / iris-issues
2y ago
Distant Horizons Not Loading LOD's
The Iris ProjectTIPThe Iris Project / iris-issues
2y ago
Distant Horizons with iris shaders
The Iris ProjectTIPThe Iris Project / iris-issues
2y ago
Distant Horizons (DH)
The Iris ProjectTIPThe Iris Project / iris-issues
2y ago