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.
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 + Sodium | OptiFine | |
|---|---|---|
| Mod loader | Fabric, Quilt, NeoForge | Standalone or with Forge |
| Works with other mods | Great with Fabric/NeoForge mods | Limited, conflicts are common |
| Performance | Sodium's heavily optimized renderer | Its own optimizations |
| Shader packs | Runs most packs written for OptiFine | The original shader pack format |
| Source code | Open source | Closed source |
| Extras (zoom, connected textures, custom entity models) | Separate mods | Built 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.
Method 1: install shaders with Iris + Sodium (recommended)
- 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.
- Download Iris and Sodium for your exact game version and loader (use the cards on this page). Iris needs Sodium to run.
- Put both .jar files into your
modsfolder. On Windows it's%appdata%\.minecraft\mods; on macOS it's~/Library/Application Support/minecraft/mods. Create the folder if it doesn't exist. - Open the launcher, pick the Fabric (or NeoForge) profile and start the game once so Iris creates the
shaderpacksfolder. - Download a shader pack (.zip) and copy it into
.minecraft/shaderpacks. Don't unzip it. - 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
- Install Java if you don't have it; you need it to run the OptiFine installer.
- 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.
- Run the downloaded .jar and click Install. A new OptiFine profile appears in the launcher. On Forge, copy the OptiFine file into your
modsfolder instead (only certain Forge versions are compatible). - Launch the game with the OptiFine profile.
- Copy your shader .zip into
.minecraft/shaderpacks. - 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, notmodsorresourcepacks. - 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
Continuity
by Pepper_Bell
A Minecraft mod that allows for efficient connected textures
[ETF] Entity Texture Features
by Traben
Emissive, Random & Custom texture support for entities in resourcepacks just like Optifine but for Fabric
[EMF] Entity Model Features
by Traben
EMF is an, OptiFine format, Custom Entity Model replacement mod available for Fabric and Forge.
Zoomify (Zoom)
by isxander
A zoom mod with infinite customizability.
Iris Shaders
by coderbot
A modern shader pack loader for Minecraft intended to be compatible with existing OptiFine shader packs
Sodium
by jellysquid3
A high-performance rendering engine replacement for Minecraft, which greatly improves frame rates and reduces micro-stutter.
📚 Related articles
Best Minecraft Shaders 1.21 – Pick by Look and by PCBest Minecraft shaders 1.21 sorted by the look you want and the PC you own – vanilla-like, fantasy, realistic and potato-friendly packs explained.
· 4 min read
Best Minecraft Resource Packs by Style (and How to Stack Them)The best Minecraft resource packs by style, from vanilla-plus and 64x detail to simplistic, PvP, animation and dark GUI packs, plus load order tips.
· 5 min read
Best Minecraft Mods 1.21.1 – 15 Picks That Are Worth InstallingBest Minecraft mods 1.21.1 players actually keep installed – performance, map, info HUD, voice chat and more, with notes on who each one suits.
· 4 min read
Minecraft Mods Latest Version – What Already Supports 26.3Minecraft mods for the latest version – which popular mods already list 26.3, which lag one step behind, and which stopped earlier. Updated from live data.
· 4 min read