HellionGames
TIPThe Iris Project
•Created by HellionGames on 7/14/2023 in #iris-issues
Converting between FogStart/End to using the Blindness factor Iris uses
Hey! I'm working on a mod that uses some fog rendering features to achieve a limited view range and want it compatible with Iris shaders. Hedge hog pointed me towards the Blindness value that Iris hardcodes for use as a Uniform in shaders rather than using the normal vanilla Fog values. I'm attempting to replicate what I've achieved with fog with shaders by conditionally injecting my own blindness values into getBlindness. I was curious if there's some sort of calculation that could be used to convert from FogStart/End to a blindness value that would allow me to dynamically adjust the radius as needed and have it at least somewhat match the non-shader version of the fog. I'd appreciate any guidance that could be given! Ideally I'd also like to reduce the fog alpha, but given that Iris doesn't seem to have any sort of FogColor vec4 uniform that I'm immediately seeing, I'm guessing that won't be possible. Thanks in advance for the advice!
55 replies
TIPThe Iris Project
•Created by HellionGames on 7/14/2023 in #iris-issues
Iris Crashing in Development Environment
Iris is crashing in my development environment whenever I enable a Shader Pack. The crash seems to indicate that a java library isn't being found. The mods installed are my own unreleased one, Sodium, and Iris. However, another user has a built version of my mod functioning with the same Sodium and Iris versions in production.
Crash Report:
https://paste.gg/p/anonymous/9903f19864004fa2b17a18fd2b1f8895
7 replies