Sodium Reloaded (Unofficial)

Sodium Reloaded (Unofficial)

0 Downloads

Animated textures: Sodium should not require modders to implement explicit compat

Technici4n opened this issue · 1 comments

commented

I implemented the following workaround to allow Modern Industrialization machine and fluid textures rendered using a Block Entity Renderer to be animated with Sodium: AztechMC/Modern-Industrialization@3ada9dd.

However, I don't like this: I don't think it's reasonable to expect that mods will all implement similar support for Sodium. Would it not be possible to flag the contained sprite as active when a BakedQuad is added to a vertex consumer (at least the one used by block entity renderers)?

commented

Would it not be possible to flag the contained sprite as active when a BakedQuad is added to a vertex consumer...

This is actually a pretty clever idea, and would probably solve most edge cases while removing a few other hacky mixins we're using to detect sprite usages in a given frame.