Hostile Neural Networks

Hostile Neural Networks

7M Downloads

Fix teisr rendering

Shadows-of-Fire opened this issue ยท 0 comments

commented
for (var model : base.getRenderPasses(stack, cull)) {
    for (var rt : model.getRenderTypes(stack, cull)) {
        var vertexConsumer = ItemRenderer.getFoilBufferDirect(GHOST_ENTITY_BUF, rt, true, false);
        var rand = RandomSource.create();
        for (var dir : Direction.values()) {
            randomsource.setSeed(42L);
            irenderer.renderQuadList(poseStack, vertexConsumer, model.getQuads(null, dir, rand, ModelData.EMPTY, rt), stack, light, overlay);
        }
        randomsource.setSeed(42L);
        irenderer.renderQuadList(poseStack, vertexConsumer, model.getQuads(null, null, rand, ModelData.EMPTY, rt), stack, light, overlay);
    }
}

L71