javiergcim / MakeUpUltraFast

High performance Minecraft shader (Java). For a graphical enhancement. Intended for low-spec computers.
GNU Lesser General Public License v3.0
108 stars 39 forks source link

Sometimes the game screen will turn black and stay that way until I turn shaders off. #62

Closed ShadowSharkWolf closed 1 year ago

ShadowSharkWolf commented 1 year ago

Hi there,

blackscreen

Seems to happen during the night. Or it happens during when the game is paused or in the inventory screen. It will happen until I turn the shaders off and will work again after a certain period of time after re-enabling shaders.

Minecraft: 1.19.4 Iris: 1.6.6 MakeUp Ultrafast: 8.8f

I doubt mods are the issue, but I'm never too sure.

ShadowSharkWolf commented 1 year ago

I tried turning on Simple exposure, but that didn't fix my issue.

McVader34 commented 1 year ago

I had the same issue. It always happened during the night as well as if there was a new moon. I looked into the code and found that during the moon brightness calculation it would sometimes be zero causing bad stuff to happen so I added a "+1". For me it fixed the problem.

If anyone else wants to fix it themselves go to the shaderpacks folder then unzip the MakeUp-UltraFast folder (you might want to change the name of the folder to Makeup-UltraFastFIX or something like that). Then go to shaders/lib/color_utils.glsl. Open it in a text editor. Change #define NIGHT_BRIGHT_PHASE NIGHT_BRIGHT * (abs(4 - moonPhase) / 4.0) to #define NIGHT_BRIGHT_PHASE NIGHT_BRIGHT * ((abs(4 - moonPhase) / 4.0) + 1) Make sure you save the changes and the shaders should work fine.

MakeUpFix

javiergcim commented 1 year ago

Fixed in version 8.8g