Iris batched entity rendering causing textures generated at runtime to fail to render correctly

I am developing a mod that allows trim model/item textures to be generated at runtime which are then stitched an uploaded, each atlas is given its own render type but when using iris something clearly breaks as the "humanoid leggings" overlay doesn't render in certain scenarios, as shown in the recording. A prior implementation had given each texture (humanoid/humanoid_leggings) it's own atlas and render type which did not have this issue but caused performance issues when too many were in the scene as sorting a lot of render types takes a while. Here's the relevant parts of the mod: https://github.com/Bawnorton/Trimica/blob/main/src/main/java/com/bawnorton/trimica/client/texture/RuntimeTrimAtlas.java#L56 https://github.com/Bawnorton/Trimica/blob/main/src/main/java/com/bawnorton/trimica/client/mixin/render/EquipmentLayerRendererMixin.java#L88
3 Replies
Bawnorton
BawnortonOP4d ago
whatever it is, it loves not being consistent
No description
No description
Bawnorton
BawnortonOP4d ago
No description
Bawnorton
BawnortonOP4d ago
Worked around it by creating a dedicated atlas and render type for leggings but I would like to be able to fix this and use the same atlas for the entire humanoid trim texture

Did you find this page helpful?