errir503 / Iris

(WIP) A new shaders mod for Minecraft intended to be compatible with existing ShadersMod/Optifine shaders

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logo

Iris

A new shaders mod for Minecraft intended to be compatible with existing ShadersMod/Optifine shaders

How can I use this?

Iris is alpha quality software and is highly incomplete. If you are not a developer or familiar with compiling and running Minecraft mods from source, OptiFine is likely the better choice in the immediate moment.

That being said... If you want to test out compiled alpha builds of the mod, please consider becoming a Patron, which will give you access to compiled downloads. Alternatively, developers who know what they are doing can compile the mod themselves.

No support will be provided for users who cannot figure out how to properly compile the mod themselves.

What is Iris, anyways?

Iris is an experiment in loading shaderpacks on Fabric. After making minimal progress trying to hack karyonix's ShadersMod codebase on to newer versions, I finally asked: How hard is it to load a basic shaderpack on Fabric from scratch? As it turns out, nowhere near as hard as I expected! Thus, Iris was born.

Iris is completely free and open source, and you are free to read, distribute, and modify the code as long as you abide by the (fairly reasonable) terms of the GNU LGPLv3 license. This should be a quite nice change of pace from the closed-source nature of OptiFine. That being said, I will ask that you talk to me before publicly posting compiled builds of the mod currently. This is out of necessity - Iris just is not yet complete enough to become widely used right now, and I don't have a support team capable of handling all potential user support requests.

For the most part, I am creating Iris in order to have fun and get more experience in rendering. However, I am also frustrated by the constant incompatibilities and issues that players have reported when using OptiFine, and I also know that I am far from the only person with this experience. By developing a compatible and open source shaders mod, I hope to work towards a community where players and developers no longer have to worry about OptiFine incompatibilities.

Current State

Iris has been progressing quite rapidly recently. The following shaderpacks mostly work, though with a few bugs of course:

  • XorDev's shaderpacks, aside from Ominous
  • Sildur's Vibrant Shaders
  • Sildur's Enhanced Default
    • Enchantment glints are broken
    • Fog is broken
  • Complementary Shaders
    • Reflections are all black, weather doesn't look quite right.
    • Underwater and nether fog is broken
  • BSL Shaders
    • Reflections currently do not work at all, and rain doesn't show up.
  • AstraLex Shaders
    • Water looks weird in general, though reflections do work. Weather doesn't work, rain does not show up and the sky does not darken.
  • SEUS v11 from 2016
    • General issues with weather
    • You need to disable clouds manually
    • Note that SEUS v11 does not work on some platforms and might fail to compile.
  • Skylec Shader - a very lightweight shaderpack that pulls off some neat effects
    • Underwater is broken
    • Weather is broken

Other shaderpacks aren't supported.


  • Sildur's Vibrant Shaders and XorDev's shaderpacks work for the most part under Iris, and have been the focus of my development. However, most other shaderpacks either have severe rendering issues, or do not work at all. My current focus is to get Sildur's Vibrant Shaders and XorDev's shaderpacks to the point where they are 100% working before shifting focus to other shaderpacks. As I fix issues in these shaderpacks, other shaderpacks will very likely begin to work properly as well.
  • I am working with JellySquid to make Sodium and Iris compatible. There is a proof-of-concept for Iris/Sodium compatibility available on a custom fork of Sodium. While this proof of concept is being used as a reference for compatibility work, it will likely be replaced with more solid and stable code in the future.

Goals

First and foremost, Iris intends to be a correct and compatible shaders mod, and these two things come before everything else, including speed. Not to say that there won't be optimizations, because those are certainly planned: they're just a lower priority. However, especially in these early stages of the project, I'm entirely willing to sacrifice a few frames here and there in order to have a robust implementation reasonably free of bugs.

Iris also intends to have full feature parity with OptiFine shaderpacks. You should be able to install Iris, download a shaderpack, and have it just work out of the box.

Non-Goals

At the moment, I have no intention of adding additional features to OptiFine shaderpacks. My primary goal is to reach feature parity with OptiFine, so that, at least in the area of shaders, the transition from OptiFine to Iris is seamless.

Iris will never support Forge. I only have a limited amount of time to dedicate towards Iris, and supporting Forge would take time away from other things that are more important and fun. Between the fact that the lead developers of Forge are not pleasant people to work with and the fact that Forge was just never intended to support the kinds of things that Iris does, maintaining a Forge port just does not make sense.

How can I help?

At the moment, the options for contributing are somewhat limited, and I don't have any formal systems in place. However, if you know a bit about rendering or the shader pipeline, you're free to fork the project and submit a pull request.

Rationale

What about Canvas?

Canvas is an advanced shader-based renderer for Minecraft also running on Fabric, by Grondag. This raises a common question: why not contribute to Canvas instead? I have already investigated this possibility, however the goals of Canvas and Iris are in fact quite different.

Canvas has the goal of creating a new shader pipeline focused on empowering mod authors with advanced graphics features, and is very promising. But this new shader pipeline is intentionally designed to not work with existing shaderpacks. Canvas wants to shed all of the backwards compatibility issues of loading existing shaderpacks, in order to achieve better performance and enable additional features for modders. For more information, see the "Why" section of the Canvas README.

However, Iris has a notably different goal: loading existing shader packs out of the box. While it's theoretically possible to get this working on Canvas, I personally prefer to start off making a standalone shaders mod instead of spending time trying to understand another complex rendering system in addition to Minecraft and ShadersMod/OptiFine.

Canvas is progressing very rapidly, and has experimental support for things like sky shadows. Lumi Lights is a shaderpack for Canvas that offers features like bloom, godrays, reflective water, and more, and it's worth a shot if you're interested in a more stable experience than what Iris can currently offer.

I think that Canvas is a great project, and some day it could very well be the dominant shader mod for Fabric. Iris is made for those who still want to play with existing OptiFine shaderpacks, because there will always be legacy shaderpack content available, even when Canvas shaderpacks become more common.

In the long run, I think that it's better for everyone if we end up with Iris and Canvas competing rather than OptiFine and Canvas competing, because at the very least, there's opportunities for cooperation and collaboration between Iris and Canvas that just don't exist with OptiFine. It's also likely that Iris can implement a subset of Grondag's FREX API, which could definitely result in FREX being more widely used.

Why not OptiFabric / Optifine?

Another good point is: Since OptiFabric and Optifine exist already and (appear to) work just fine, what's the point of going through all of this effort anyways?

The fundamental flaw with OptiFabric is that it is a massive hack. I call it a hack in the traditional sense of the word: OptiFabric is very clever in implementation, yet it is also an inelegant and ultimately temporary solution. Most of the issues with OptiFabric are in fact problems with OptiFine itself, and no matter how good OptiFabric is, it can never work around these underlying architectural issues of OptiFine.

OptiFine is created as a "jar mod." Remember deleting META-INF about a decade ago (Wow, I feel old now) and copying the files from that one new mod directly into your minecraft.jar? Effectively, that's what Optifine now does every time you start the game. That means that it directly patches a decompiled version of Minecraft, then at runtime it overwrites the vanilla classes (units of code) with its own modified versions. This is about as invasive and incompatible as it sounds. Perhaps unsurprisingly, Optifine is notorious for having many, many, many incompatibilities with other mods.

On the other hand, Iris is a native Fabric mod that uses carefully crafted and precise code injections driven by the Mixin bytecode patching system. Mixin is the basis of the entire Fabric modding community, and is a much more compatible way of patching the game. This alone should help alleviate many of the compatibility issues that have plagued OptiFine.

Discord

Join the Iris Discord server to chat about the mod and follow development!

Credits

  • TheOnlyThing and Vaerian, for creating the excellent logo
  • daxnitro, karyonix, and sp614x, for creating and maintaining the current shaders mods
  • Mumfrey, for creating the finest bytecode patching system that I've ever had the pleasure of working with
  • The Fabric community, for providing both support and great tooling
  • JellySquid, for creating the first actually viable OptiFine alternative (as far as optimizations go)
  • All past, present, and future contributors to Iris, for helping the project move along

About

(WIP) A new shaders mod for Minecraft intended to be compatible with existing ShadersMod/Optifine shaders

License:GNU Lesser General Public License v3.0


Languages

Language:Java 100.0%Language:GLSL 0.0%