mirror of
https://github.com/JonasunderscoreJones/nicer-skies.git
synced 2025-10-22 19:29:18 +02:00
new: make sky progressively smooth away during day
This commit is contained in:
parent
d12988e914
commit
8722118eec
2 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@ package codes.ztereohype.example.mixin;
|
|||
|
||||
import codes.ztereohype.example.ExampleMod;
|
||||
import codes.ztereohype.example.star.SkyManager;
|
||||
import com.mojang.blaze3d.systems.RenderSystem;
|
||||
import com.mojang.blaze3d.vertex.*;
|
||||
import com.mojang.math.Matrix4f;
|
||||
import net.minecraft.client.Camera;
|
||||
|
@ -54,6 +55,7 @@ public abstract class MixinStarRendering {
|
|||
locals = LocalCapture.CAPTURE_FAILHARD
|
||||
)
|
||||
private void drawSkybox(PoseStack poseStack, Matrix4f projectionMatrix, float partialTick, Camera camera, boolean bl, Runnable skyFogSetup, CallbackInfo ci, FogType fogType, Vec3 vec3, float f, float g, float h, BufferBuilder bufferBuilder, ShaderInstance shaderInstance, float[] fs, float i, Matrix4f matrix4f2, float k, int r, int s, int m, float t, float o, float p, float q) {
|
||||
RenderSystem.setShaderColor(1.0F, 1.0F, 1.0F, level.getStarBrightness(0));
|
||||
ExampleMod.nebulaSkybox.render(poseStack, projectionMatrix);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -220,7 +220,6 @@ public class SkyManager {
|
|||
Color color = NEBULA_GRADIENT.getAt(colourValue);
|
||||
|
||||
return FastColor.ARGB32.color(alpha, color.getBlue(), color.getGreen(), color.getRed());
|
||||
// return FastColor.ARGB32.color(255, 255, 255, 255);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue