Feintha
Feintha
TIPThe Iris Project
Created by Feintha on 7/25/2023 in #iris-issues
Issue when trying to render multiple RenderLayers using Fabric/Quilt
Alright, figured out a fix for this issue, I'm gonna put it here for people in the future:
// inside client init class
public static boolean isRenderingInWorld = false;
...
void onInitializeClient() {
WorldRenderEvents.END.register(context -> isRenderingInWorld = false);
WorldRenderEvents.START.register(context -> isRenderingInWorld = true);
...
}
// inside rendering function
void someFunctionToRender() {

if (ClientInitializer.isRenderingInWorld && FabricLoader.getInstance().isModLoaded("iris")) {
l = RenderLayer.getEntityCutoutNoCullZOffset(...);
} else {
l = RenderLayer.getEntityCutout(...);
}
}
// inside client init class
public static boolean isRenderingInWorld = false;
...
void onInitializeClient() {
WorldRenderEvents.END.register(context -> isRenderingInWorld = false);
WorldRenderEvents.START.register(context -> isRenderingInWorld = true);
...
}
// inside rendering function
void someFunctionToRender() {

if (ClientInitializer.isRenderingInWorld && FabricLoader.getInstance().isModLoaded("iris")) {
l = RenderLayer.getEntityCutoutNoCullZOffset(...);
} else {
l = RenderLayer.getEntityCutout(...);
}
}
25 replies
TIPThe Iris Project
Created by Feintha on 7/25/2023 in #iris-issues
Issue when trying to render multiple RenderLayers using Fabric/Quilt
Except in the inventory screen
25 replies
TIPThe Iris Project
Created by Feintha on 7/25/2023 in #iris-issues
Issue when trying to render multiple RenderLayers using Fabric/Quilt
Looked at Figura's fix, and changing the getEntityCutout part to getEntityCutoutNoCullZOffset seems to work.
25 replies
TIPThe Iris Project
Created by Feintha on 7/25/2023 in #iris-issues
Issue when trying to render multiple RenderLayers using Fabric/Quilt
Was using a freecam mod for this screenshot since it'll be on the modrinth page. I got the angles as close as I could
25 replies
TIPThe Iris Project
Created by Feintha on 7/25/2023 in #iris-issues
Issue when trying to render multiple RenderLayers using Fabric/Quilt
No description
25 replies
TIPThe Iris Project
Created by Feintha on 7/25/2023 in #iris-issues
Issue when trying to render multiple RenderLayers using Fabric/Quilt
The blue and red parts on the skin are the overlay, which works fine without Iris
25 replies
TIPThe Iris Project
Created by Feintha on 7/25/2023 in #iris-issues
Issue when trying to render multiple RenderLayers using Fabric/Quilt
No description
25 replies
TIPThe Iris Project
Created by Feintha on 7/25/2023 in #iris-issues
Issue when trying to render multiple RenderLayers using Fabric/Quilt
The emissive texture works fine, however the entityCutout doesn't
25 replies
TIPThe Iris Project
Created by Feintha on 7/25/2023 in #iris-issues
Issue when trying to render multiple RenderLayers using Fabric/Quilt
Does it batch render in the Inventory?
25 replies
TIPThe Iris Project
Created by Feintha on 7/25/2023 in #iris-issues
Issue when trying to render multiple RenderLayers using Fabric/Quilt
That could be it, because the rendering is added onto the PlayerEntityRenderer's render function.
25 replies
TIPThe Iris Project
Created by Feintha on 7/25/2023 in #iris-issues
Issue when trying to render multiple RenderLayers using Fabric/Quilt
With and without shaders
25 replies
TIPThe Iris Project
Created by Feintha on 7/25/2023 in #iris-issues
Issue when trying to render multiple RenderLayers using Fabric/Quilt
Sodium isn't installed, and I tried it with sodium and the outcome was the same.
25 replies
TIPThe Iris Project
Created by Feintha on 7/25/2023 in #iris-issues
Issue when trying to render multiple RenderLayers using Fabric/Quilt
No description
25 replies
TIPThe Iris Project
Created by Feintha on 7/25/2023 in #iris-issues
Issue when trying to render multiple RenderLayers using Fabric/Quilt
it only happens when Iris is installed. Using custom shaders doesn't change the outcome
25 replies
TIPThe Iris Project
Created by Feintha on 7/25/2023 in #iris-issues
Issue when trying to render multiple RenderLayers using Fabric/Quilt
It also seems the rendering works properly in the Inventory screen, so it's likely something caused by Iris in some form.
25 replies
TIPThe Iris Project
Created by Feintha on 7/25/2023 in #iris-issues
Issue when trying to render multiple RenderLayers using Fabric/Quilt
Sorry if this is an issue unrelated to Iris, but this problem only happens when Iris is used. An example of what should be happening is attached on the left, as well as what is happening with Iris.
25 replies