![[EMF] Entity Model Features [Fabric & Forge]](https://media.forgecdn.net/avatars/thumbnails/983/284/256/256/638491564386011875.png)
[Bug] Rendering Issue with Translucent Outer Layer and Glowing Inner Layer on Player Skins in Minecraft 1.21.2+
AzusaKe opened this issue · 3 comments
Describe the bug
In Minecraft 1.21.1 and below, this issue does not occur under normal circumstances. However, starting from 1.21.2 and above, a rendering bug affects player skins when using the Fabric loader (tested with version 0.16.10) and the latest Fabric API.
Issue Details
The player skin consists of two layers: an inner layer and an outer layer, where the outer layer can contain translucent pixels (colored pixels with an alpha value less than 255).
If an inner layer pixel is set to glowing, and the corresponding outer layer pixel is translucent, then the inner layer pixel becomes invisible in-game, creating a hole in the skin.
Similarly, if the outer layer pixel is set to glowing, and the corresponding inner layer pixel is translucent, then the inner layer pixel is also invisible, but the outer layer remains visible and glowing.
To Reproduce
Steps to reproduce the behavior:
1.Install Minecraft 1.21.2 or later with Fabric Loader 0.16.10 and the latest Fabric API.
2.Use a custom player skin with:
A translucent outer layer (alpha < 255).
A normal inner layer in the same area.
3.set glowing pixels on inner layer.
4.Observe that the inner layer pixels are not rendered in the game, leaving holes in the skin.
5.Swap the glow effect to the outer layer instead and observe the same issue—the inner layer disappears, but the outer layer remains glowing.
Expected behavior
the inner layer should be visible
Screenshots
below is bug screenshot,there's hole on player's face
below is normal screenshot,player's eye should be glowing and visible
Crashlog
This issue does not cause crashes, and no error logs are generated.
(please complete the following information):
- Minecraft Version: 1.21.2 and later
- EMF version 2.4.1
- Does the issue persist with only EMF installed? yes
- if applicable, provide your modlist or log
Additional context
In Minecraft 1.21.1 or lower, this issue does not normally occur. However, when this mod is used alongside certain other mods, the rendering issue can also appear, even in older versions.
This suggests a possible conflict between rendering methods used by different mods.
For example,add emf to betterMC [BMC4] v35.5 1.20.1 will cause render issue too
bug occured on forge loader too ,persist with only EMF installed in Minecraft 1.21.2 and later
Unfortunately, I also ran into this issue with fabric version 1.21.1, where the glowing pixels caused the corresponding inner skin to be invisible, and the hollow eyes bothered me for a long time.