How to Install Shaders With OptiFine

Open Shaders Folder from the matching OptiFine installation, copy the shader pack ZIP into it, then select the pack and check its effect in a world.

Cubic trees cast long shadows across still water in a shaft of gold sunlight.

Use a build of OptiFine that supports shaders for your Minecraft: Java Edition version. Launch that installation and open Options > Video Settings > Shaders > Shaders Folder. Copy the shader pack ZIP into the folder that opens. Return to the Shaders list, select the pack and click Done.

Choose a build that supports shaders

Start with the Minecraft version shown in the installation you play. Find its row on the official OptiFine downloads page and read the changelog beside the file. The Minecraft 26.3 K3 pre2 changelog lists shaders as unfinished. If you're staying on 26.3, use the shader setup for your version and loader.

For a concrete OptiFine setup, use Minecraft 1.21.11 and OptiFine HD U J9. The file is OptiFine_1.21.11_HD_U_J9.jar, and its changelog documents shader fixes. Use a separate 1.21.11 installation for the example if you normally play another version. Follow the OptiFine installation guide if the profile still needs to be created.

Open the folder from the running game

Start the matching OptiFine installation in Minecraft Launcher, or open the modpack instance that already uses that matching build. Go into Options, then Video Settings, and click Shaders....

OptiFine Video Settings with the Shaders button highlighted.
Open Shaders from Video Settings in the running OptiFine installation.

Click Shaders Folder below the list. OptiFine's English labels and download tooltip name this as the destination for downloaded packs. I'd use the shaderpacks directory this button opens. A modpack can have its own game directory, and your usual .minecraft folder may belong to another installation.

Choose the shader pack on its author's release page and check that it lists your Minecraft version and OptiFine. For the 1.21.11 example, BSL v10.1.8 lists both. Copy BSL_v10.1.8.zip directly into shaderpacks. OptiFine's shader pack documentation supports ZIP files in that folder, so leave the downloaded archive intact.

The shaderpacks folder containing BSL_v10.1.8.zip.
Copy the complete BSL ZIP into the folder opened by Shaders Folder.

Select the pack and check it in a world

Return to the Shaders screen. Click the row for BSL_v10.1.8.zip or the name of the pack you copied, then select Done. Reopen Shaders and check that the pack's row is still selected.

BSL_v10.1.8.zip selected in OptiFine's Shaders list above the Done button.
Select the ZIP, click Done and check the same row when you reopen Shaders.

The selected row confirms the game found the ZIP. To check the effect, compare the same spot in a world with the pack selected and with OFF selected. Click Done and return to the world after each change. Look for a difference in lighting or shadows, then turn the pack back on.

Check the step that failed

  • The ZIP is absent from the list. Reopen Shaders. Use Shaders Folder again and check that the complete file ending in .zip sits directly inside the directory that opens.
  • OptiFine reports an antialiasing conflict. Its conflict message names Video Settings > Quality > Antialiasing. Set it to OFF and restart Minecraft.
  • The menu is missing or the view turns black. Follow the OptiFine checks for missing options and shader errors for the build you're running.
Tom Fletcher

Tom Fletcher

Tom Fletcher covers OptiFine through the choices available to a particular Minecraft Java setup.