bernie-g / geckolib

GeckoLib is an animation engine for Minecraft mods, with support for complex 3D keyframe-based animations, numerous easings, concurrent animation support, sound and particle keyframes, event keyframes, math-based animations, and more. Available for all major modloaders.
https://geckolib.com
MIT License
601 stars 126 forks source link

Shader Armor Reflections incompatible #546

Closed wisefries closed 1 month ago

wisefries commented 7 months ago

When using Iris shaders supporting labPBR resource packs, armor reflections are not present.

Active mods:

To replicate, use any shader with labPBR resource pack support, e.g. Complementary Reimagined, and a resource pack with PBR formatted textures, e.g. DefaultPBR. (Modrinth links)

Intended effect, with Iris and Sodium: Iris When GeckoLib is present: Gecko

Tslat commented 7 months ago

Update the mod then?

wisefries commented 7 months ago

my mistake, I mistyped 4.2.4 instead of the current version, 4.4.2. It's just a minor incompatibility that I thought I should mention.

pnk2u commented 6 months ago

I'm having the same issue with the same mods. Both POM and reflections (from resource packs using labPBR) on all movable entities (e.g. boats, minecarts, etc.) do not render.

Tslat commented 6 months ago

If you disable geckolib's mixins by removing the mixins from the mixins.json in the jar, does it fix it?

pnk2u commented 6 months ago

Yes, doing that fixes it. The POM and reflections render normally.

Tslat commented 6 months ago

I see

Tslat commented 4 months ago

Can this be tested in 1.20.6+ pls

pnk2u commented 4 months ago

Using 1.20.6 (v4.5.2): No change, same issue

Tslat commented 4 months ago

Damn

blunderbust commented 3 months ago

I also ran into this issue. I was running Patrix textures and noticed that the squids and iron golems were no longer reflective/shine. I tested all versions of Geckolib available on Modrinth (4.2.1 to 4.4.6). None fixed the issue.

Like it was suggested earlier, I opened the geckolib.mixins.json file contained in the .jar file, removed the entries in the "client" section so it is a set of empty brackets [ ].

This fixed the issue.

For those interested you can open a .jar file by changing the .jar to .zip and then open the archive. You can then open the .json file with a text editor like notepad. save the edited .json file to your desktop, and then drop and replace the old .json in the .zip file. when done, rename the .zip file back to .jar.

If there is a better way to temp patch this mod let me know. I can also test any potential fixes here as well.

MC 1.20.1 Fabric Iris Sodium Lithium Indium Continuity Entity Model Features Entity Texture Features Vanadium (colormatic replacement)

BSL shaders Patrix texture pack

pnk2u commented 3 months ago

Actually, and since you asked, you can only remove the "client.TextureManagerMixin" (and the comma in the line above), you don't need to remove all of them.

Tslat commented 3 months ago

I can't seem to replicate this on 1.21 4.5.5?

image

Tslat commented 3 months ago

Good news I've figured out what's causing this and how to fix it

Bad news Fixing it properly is quite problematic, so it'll take me some time to figure out how I want to approach it