© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
The Iris ProjectTIP
The Iris Project•2mo ago•
4 replies
Vibzz

Iris Shader Block Entity Renderer Bug?

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
        ));
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
The Iris Project banner
The Iris ProjectJoin
This server is all about the development and community around Iris Shaders!
71,314Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Iris Shader Texture bug
The Iris ProjectTIPThe Iris Project / iris-issues
3y ago
Help getting my block renderer/renderlayers compatible with Iris
The Iris ProjectTIPThe Iris Project / iris-issues
3y ago
Iris Shader error
The Iris ProjectTIPThe Iris Project / iris-issues
4mo ago
Iris Shader ISSUE
The Iris ProjectTIPThe Iris Project / iris-issues
7mo ago