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"

    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.
Was this page helpful?