Jump to content

Fog Render Density and Color - 1.17


ZainJx

Recommended Posts

I'm trying to just do what I did in 1.16 with fog:

@SubscribeEvent(priority = EventPriority.NORMAL, receiveCanceled = true)
    public static void onFogDensityEvent(EntityViewRenderEvent.FogDensity event) {
        event.setDensity(densityFloat);
        event.setCanceled(true);
    }

    @SubscribeEvent(priority = EventPriority.NORMAL, receiveCanceled = true)
    public static void onFogColorsEvent(EntityViewRenderEvent.FogColors event) {
            event.setRed(0);
            event.setGreen(0);
            event.setBlue(0);
    }

with the 

densityFloat

variable that changes, and it worked perfectly.

Now I did the same (copy-paste) and with densityFloat set to 0 I have a dense fog anyway, changing the value of densityFloat the fog remains the same

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.