Search in sources :

Example 1 with HorizonRenderer

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);
}
Also used : HorizonRenderer(net.coderbot.iris.HorizonRenderer) Vector3d(net.coderbot.iris.vendored.joml.Vector3d) Inject(org.spongepowered.asm.mixin.injection.Inject)

Aggregations

HorizonRenderer (net.coderbot.iris.HorizonRenderer)1 Vector3d (net.coderbot.iris.vendored.joml.Vector3d)1 Inject (org.spongepowered.asm.mixin.injection.Inject)1