Skip to content

Commit

Permalink
More changes / cleanup to the Sky code
Browse files Browse the repository at this point in the history
  • Loading branch information
lowercasebtw committed Jan 15, 2025
1 parent b3817af commit 9468481
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ modmenu_version=13.0.0
yacl_version=3.6.2+1.21.4-fabric

# Mod Properties
mod_version=1.0.0-dev-33
mod_version=1.0.0-dev-34
maven_group=btw.mixces
archives_base_name=animatium
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import com.llamalad7.mixinextras.sugar.Local;
import com.mojang.blaze3d.systems.RenderSystem;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexBuffer;
import net.minecraft.client.Camera;
import net.minecraft.client.Minecraft;
import net.minecraft.client.multiplayer.ClientLevel;
Expand Down Expand Up @@ -90,10 +89,7 @@ public abstract class MixinLevelRenderer {
Matrix4fStack modelViewStack = RenderSystem.getModelViewStack();
modelViewStack.pushMatrix();
modelViewStack.translate(0.0F, -((float) (depth - 16.0)), 0.0F);
SkyRendererAccessor skyRendererAccessor = (SkyRendererAccessor) this.skyRenderer;
skyRendererAccessor.getBottomSkyBuffer().bind();
skyRendererAccessor.getBottomSkyBuffer().drawWithShader(modelViewStack, RenderSystem.getProjectionMatrix(), RenderSystem.setShader(CoreShaders.POSITION));
VertexBuffer.unbind();
((SkyRendererAccessor) this.skyRenderer).getBottomSkyBuffer().drawWithRenderType(RenderType.sky());
modelViewStack.popMatrix();

RenderSystem.setShaderColor(1.0F, 1.0F, 1.0F, 1.0F);
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/btw/mixces/animatium/AnimatiumClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class AnimatiumClient : ClientModInitializer {

// Info
const val VERSION = 1.0
val DEVELOPMENT_VERSION = Optional.ofNullable(33)
val DEVELOPMENT_VERSION = Optional.ofNullable(34)

@JvmStatic
fun getInfoPayload(): AnimatiumInfoPayloadPacket {
Expand Down

0 comments on commit 9468481

Please sign in to comment.