This commit is contained in:
paulevsGitch 2020-09-24 18:49:23 +03:00
parent 34e7c442e4
commit 36ea4b8726
8 changed files with 32 additions and 57 deletions

View file

@ -28,10 +28,10 @@ public class BackgroundRendererMixin {
private static float fogEnd;
private static float lerp;
private static final float SKY_RED = 21F / 255F;
private static final float SKY_GREEN = 16F / 255F;
private static final float SKY_BLUE = 20F / 255F;
//private static final float NORMAL = 0.12757292F;
//private static final float SKY_RED = 21F / 255F;
//private static final float SKY_GREEN = 16F / 255F;
//private static final float SKY_BLUE = 20F / 255F;
private static final float NORMAL = 1.5F/ 0.12757292F; // 0.12757292F is max value for red channel after all transformations
@Shadow
private static float red;
@ -47,10 +47,10 @@ public class BackgroundRendererMixin {
FluidState fluidState = camera.getSubmergedFluidState();
if (fluidState.isEmpty() && world.getDimension().hasEnderDragonFight()) {
RenderSystem.clearColor(SKY_RED, SKY_GREEN, SKY_BLUE, 0);
//red /= NORMAL;
//green /= NORMAL;
//blue /= NORMAL;
//RenderSystem.clearColor(SKY_RED, SKY_GREEN, SKY_BLUE, 0);
red *= NORMAL;
green *= NORMAL;
blue *= NORMAL;
}
}