Sodium

Sodium

49M Downloads

Fix fog's effects on translucent blocks moved by pistons

muzikbike opened this issue ยท 1 comments

commented

Request Description

Vanilla bug https://bugs.mojang.com/browse/MC-248682. Falling block entities representing translucent blocks are also affected: https://bugs.mojang.com/browse/MC-248688

Simply put, translucent blocks being moved by pistons aren't affected by fog in the same way non-translucent blocks moved by pistons are, causing them to stick out very obviously from a distance. Fixing this may be as easy as tweaking vanilla's shaders, but I decided it'd make sense to report here on the basis of it being a common graphical issue.

2024-05-01_23 27 53

commented

For some reason, Minecraft special-cases translucent moving blocks with a separate shader, and nothing else. Why they're doing this is beyond me, because there's no difference between it and the normal translucency shader other than for the fact it doesn't apply fog.

Probably, one could fix this by modifying the rendertype_translucent_moving_block render type JSON (with a resource pack) to instead use the rendertype_translucent shader. But I don't want to do this in Sodium, since other mods could rely on this behavior or other strangeness it introduces.