Iris Shader Block Entity Renderer Bug?

i have a custom block entity renderer for the lantern block
i was able to make the lantern texture emit the emissveness from the shader by passing in RenderLayers.getEntityBlockLayer(blockState); (for 1.21.10 currently until i figure this other part out)

this is the code:

RenderLayer renderLayer = RenderLayers.getEntityBlockLayer(blockState);

       
int color = MinecraftClient.getInstance().getBlockColors().getColor(state.blockState, state.world, state.blockPos, 0);
        float r = (color >> 16 & 0xFF) / 255.0F;
        float g = (color >> 16 & 0xFF) / 255.0F;
        float b = (color >> 16 & 0xFF) / 255.0F;

queue.submitCustom(matrices, renderLayer, (matricesEntry, vertexConsumer) -> BlockModelRenderer.render(
                matricesEntry,
                vertexConsumer,
                model,
                r, g, b,
                state.lightmapCoordinates,
                OverlayTexture.DEFAULT_UV
        ));


however the shader does not want to emit the light when the block entity is enabled
Was this page helpful?