Home › Minecraft › How to Run Shaders with Fabric in Minecraft (Sodium + Iris)

How to Run Shaders with Fabric in Minecraft (Sodium + Iris)

How to Run Shaders with Fabric in Minecraft (Sodium + Iris)

OptiFine carried Minecraft shaders for a decade, but the ecosystem has moved. If you play with mods — or simply want your shader pack working on the newest version in week one rather than month three — the Fabric route is now the standard: a lightweight loader, a performance mod called Sodium, and a shader mod called Iris. The whole setup takes about ten minutes, and this guide walks through it in order.

What Each Piece Does

  • Fabric Loader: the mod loader itself — the thing that lets Minecraft run mods.
  • Fabric API: a support library that most Fabric mods, including the two below, expect to find.
  • Sodium: a rendering optimisation mod. It dramatically improves frame rates, which matters because shaders will take those frames away again.
  • Iris: the shader mod. It loads shader packs — and it is compatible with the vast majority of packs written for OptiFine, so the existing shader library is yours.

Step 1: Install Fabric

  1. Download the Fabric installer from the official Fabric website and run it.
  2. Select your Minecraft version, keep the default install location, and click Install.
  3. Open the Minecraft Launcher — a new Fabric Loader profile should be waiting in the version list.

Step 2: Add Sodium, Iris and Fabric API

  1. Download the .jar files for Sodium, Iris and Fabric API, matching your exact Minecraft version, from their official pages (Modrinth or CurseForge).
  2. Open your .minecraft folder — on Windows, press Win+R and type %appdata%/.minecraft.
  3. Drop all three jars into the mods folder. If the folder does not exist yet, create it — the name must be exactly "mods".

Version mismatches are the number one cause of crashes here. A Sodium build for 1.21.1 will not load on 1.21.3; take the extra ten seconds to check each file's version tag.

Step 3: Install a Shader Pack

  1. Download a shader pack — BSL, Complementary and Sildur's are the usual starting points — and confirm it lists Iris support on its download page.
  2. In .minecraft, open the shaderpacks folder (create it if missing).
  3. Move the pack's .zip file in as-is. Do not unzip it; Iris reads the archive directly.

Step 4: Switch the Shaders On

  1. Launch Minecraft using the Fabric Loader profile and load a world.
  2. Pause, then go to Options → Video Settings.
  3. Open the Shader Packs tab at the top — this menu exists because Iris is installed.
  4. Click your pack, then Apply. The world relights itself behind the menu.

From the same screen you can open the pack's own settings to tune shadows, water and bloom; most packs ship sensible presets (Low/High/Ultra) if your frame rate needs mercy.

Why Fabric Over OptiFine?

Three practical reasons. Fabric and Iris update within days of a new Minecraft release, while OptiFine can lag for months. Sodium's performance gains are typically larger than OptiFine's, which is real money once shaders start taxing your GPU. And OptiFine does not run on Fabric at all — so if your world already uses Fabric mods, Iris is not just the better choice, it is the only one. (A bridge mod called OptiFabric exists, but it is a workaround, not a foundation to build on.)

If the Shader Packs tab is missing, Iris did not load — check that its jar is in the mods folder and that all three mod versions match your game version. Nine times out of ten, that is the whole problem.

Frequently asked questions

Do I need both Sodium and Iris to run shaders on Fabric?

Iris is the mod that actually loads shader packs, so it is the essential one. Sodium is technically optional but strongly recommended — it returns much of the performance that shaders cost, and Iris is designed to work alongside it.

Can I use OptiFine shader packs with Iris?

In most cases, yes. Iris supports the large majority of shader packs written for OptiFine, including popular ones like BSL and Complementary. Check the pack's page for an Iris compatibility note if you hit visual glitches.

Why is there no Shader Packs tab in my video settings?

That tab is added by Iris, so its absence means Iris did not load. Check that the Iris jar is in the mods folder, that you launched the Fabric Loader profile, and that the Iris, Sodium and Fabric API versions all match your Minecraft version.

Does OptiFine work with Fabric?

Not natively — OptiFine is built for vanilla/Forge-style loading. A separate bridge mod (OptiFabric) can force them together, but the Sodium + Iris combination does the same job more cleanly on Fabric.