ModTorch

How to Install Shaders in Minecraft (Iris & OptiFine Guide)

How to install shaders in Minecraft with Iris + Sodium or OptiFine, step by step, plus fixes for black screens, low FPS and missing shader packs.

✍ ModTorch team · Published · 5 min read

Seen those Minecraft screenshots with sunbeams through the leaves and shimmering water, and want your game to look like that? Installing shaders is easy once you know the order of steps. This guide covers the two common methods, Iris + Sodium and OptiFine, then walks through the problems people hit most often.

How shaders work in Minecraft Java

Vanilla Minecraft Java can't load shader packs by itself. You need a shader loader:

  • Iris: an open-source mod for Fabric, Quilt and NeoForge that runs on top of Sodium, the performance mod.
  • OptiFine: the long-running standalone modification, installed as its own profile or dropped into a Forge mods folder.

Once a loader is in place, you download a shader pack (a .zip file) and put it into the shaderpacks folder.

Iris + Sodium vs OptiFine

Iris + SodiumOptiFine
Mod loaderFabric, Quilt, NeoForgeStandalone or with Forge
Works with other modsGreat with Fabric/NeoForge modsLimited, conflicts are common
PerformanceSodium's heavily optimized rendererIts own optimizations
Shader packsRuns most packs written for OptiFineThe original shader pack format
Source codeOpen sourceClosed source
Extras (zoom, connected textures, custom entity models)Separate modsBuilt in

Our take: unless you have a specific reason to stay on OptiFine, go with Iris + Sodium. Every OptiFine extra has a mod equivalent: Continuity for connected glass and textures, Entity Texture Features and Entity Model Features for custom mob textures and models, and Zoomify for zoom.

  1. Install a loader. Grab the Fabric installer from fabricmc.net, choose your Minecraft version and click Install. On NeoForge, use the NeoForge installer instead. Not sure which? Read Fabric vs Forge vs NeoForge.
  2. Download Iris and Sodium for your exact game version and loader (use the cards on this page). Iris needs Sodium to run.
  3. Put both .jar files into your mods folder. On Windows it's %appdata%\.minecraft\mods; on macOS it's ~/Library/Application Support/minecraft/mods. Create the folder if it doesn't exist.
  4. Open the launcher, pick the Fabric (or NeoForge) profile and start the game once so Iris creates the shaderpacks folder.
  5. Download a shader pack (.zip) and copy it into .minecraft/shaderpacks. Don't unzip it.
  6. In game, go to Options → Video Settings → Shader Packs, or just press O. Select the pack, click Apply, then Done.

If you use a Modrinth-compatible launcher such as the Modrinth App or Prism Launcher, you can add Iris and Sodium straight to a Fabric profile without copying files by hand. Our mod installation guide covers that route.

Method 2: install shaders with OptiFine

  1. Install Java if you don't have it; you need it to run the OptiFine installer.
  2. Download OptiFine for your Minecraft version from the official site, optifine.net. Watch out for ads on the download page and only click the real download link.
  3. Run the downloaded .jar and click Install. A new OptiFine profile appears in the launcher. On Forge, copy the OptiFine file into your mods folder instead (only certain Forge versions are compatible).
  4. Launch the game with the OptiFine profile.
  5. Copy your shader .zip into .minecraft/shaderpacks.
  6. Go to Options → Video Settings → Shaders..., pick the pack and wait for it to load.

Important: never install OptiFine alongside Sodium or Iris. They conflict and the game will usually crash.

Which shader should you start with?

On a weak PC, start with something light such as MakeUp - Ultra Fast; on a decent machine, Complementary is the classic first pick. We have a full guide to the best shaders for every PC, or you can browse the complete shader list.

Troubleshooting

The shader pack doesn't show up

  • Wrong folder: it must be in .minecraft/shaderpacks, not mods or resourcepacks.
  • Unzipped: Iris and OptiFine read .zip files directly, so leave it zipped.
  • Double-zipped: open the .zip. If all it contains is a folder with another .zip inside, use the inner file.
  • Wrong profile: double-check the launcher is set to your Fabric/NeoForge or OptiFine profile, not vanilla.

Black screen, white screen or broken visuals

  • Update your graphics drivers. This fixes more shader problems than anything else.
  • Laptop with two GPUs: in Windows graphics settings, set Java (javaw.exe) to use the dedicated GPU.
  • Update both the shader pack and Iris, or try a different pack to tell whether the problem is the shader or your system.
  • On macOS, the system only supports OpenGL up to 4.1, so some shaders don't work fully. Pick packs that list Mac support.
  • Remove other rendering mods temporarily to check for conflicts.

Very low FPS with shaders on

  • Switch to a lower quality profile in the shader menu if the pack has one.
  • Lower shadow distance, shadow resolution and render distance.
  • Add the best FPS mods, such as Entity Culling and ImmediatelyFast.
  • Move to a lighter pack; some are designed specifically for low-end hardware.

The game crashes on launch

Usually a version mismatch (a 1.21.1 mod in a 1.20.1 game), Iris installed without Sodium, or OptiFine mixed with Sodium. Our Minecraft crash fix guide shows how to read the log and track down the culprit.

Quick recap

The fast, low-hassle route: install Fabric, add Iris + Sodium, drop the shader .zip into shaderpacks, press O and pick it. OptiFine still works if you're used to it, just don't mix it with Sodium. When something goes wrong, check in order: right folder, right version, latest drivers. Enjoy the view!

FAQ

What do I need to install Minecraft shaders?

Minecraft Java Edition, a shader loader (Iris with Sodium, or OptiFine) and a shader pack in .zip format. Vanilla Minecraft can't load shader packs on its own.

Is Iris better than OptiFine for shaders?

For most players, yes. Iris with Sodium is lightweight, updates quickly and works alongside Fabric and NeoForge mods. OptiFine makes sense if you rely on its built-in features and don't use other mods.

Why is my shader pack not showing up?

Usually the file is in the wrong folder, has been unzipped, or is double-zipped. Keep the .zip in the shaderpacks folder and make sure you launched the profile with Iris or OptiFine.

How do I fix a black screen with shaders?

Update your graphics drivers, make sure Java runs on your dedicated GPU, and try a newer version of the shader or a different pack. On macOS, some shaders aren't fully supported.

Can I use Iris and OptiFine together?

No. Iris depends on Sodium, and Sodium conflicts with OptiFine. Pick one setup.

💬 Comments

🧩 Featured in this article

📚 Related articles