use of net.coderbot.iris.HorizonRenderer in project Iris by IrisShaders.
the class MixinLevelRenderer method iris$renderSky$drawHorizon.
@Inject(method = "renderSky", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/renderer/FogRenderer;levelFogColor()V"))
private void iris$renderSky$drawHorizon(PoseStack poseStack, float tickDelta, CallbackInfo callback) {
RenderSystem.depthMask(false);
Vector3d fogColor = CapturedRenderingState.INSTANCE.getFogColor();
RenderSystem.color3f((float) fogColor.x, (float) fogColor.y, (float) fogColor.z);
new HorizonRenderer().renderHorizon(poseStack);
RenderSystem.depthMask(true);
}
Aggregations