© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
The Iris ProjectTIP
The Iris Project•16mo ago•
10 replies
Yusarnn

renderState uniform issue

The renderState uniform seems to not return any value in IRIS 1.8.0-beta.8.

void main() {
    // Debug renderStage value
    if (renderStage == MC_RENDER_STAGE_OUTLINE) {
        scene_color.rgb = vec3(1.0, 0.0, 0.0); // Red for outline
    } else {
        scene_color.rgb = vec3(0.0, 1.0, 0.0); // Green for non-outline
    }
    scene_color.a = 1.0;
}
void main() {
    // Debug renderStage value
    if (renderStage == MC_RENDER_STAGE_OUTLINE) {
        scene_color.rgb = vec3(1.0, 0.0, 0.0); // Red for outline
    } else {
        scene_color.rgb = vec3(0.0, 1.0, 0.0); // Green for non-outline
    }
    scene_color.a = 1.0;
}


As you can see in the screenshot, both the block outline and the fishing rod line appear green.
image.png
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

Variable shadows build in uniform: rainStrength
The Iris ProjectTIPThe Iris Project / iris-issues
3y ago
the uniform frameTimeCounter doesnt work when I looking down for some reasons
The Iris ProjectTIPThe Iris Project / iris-issues
2y ago
Shader phosphor could not find uniform named insize in the speicifed shader program
The Iris ProjectTIPThe Iris Project / iris-issues
3y ago
Issue
The Iris ProjectTIPThe Iris Project / iris-issues
7mo ago