Skip to content

Fix mc_Entity being zero on the vanilla and core shader paths - #3263

Merged
IMS212 merged 1 commit into
IrisShaders:26.1from
wVibzz:terrain-attribute-types
Aug 3, 2026
Merged

Fix mc_Entity being zero on the vanilla and core shader paths#3263
IMS212 merged 1 commit into
IrisShaders:26.1from
wVibzz:terrain-attribute-types

Conversation

@wVibzz

@wVibzz wVibzz commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Programs using IrisVertexFormats.TERRAIN read mc_Entity as 0.

SodiumTransformer.replaceMCEntity already redeclares it on the Sodium path, the vanilla and core paths just never got the same fix. But basically the format declares it as two unnormalized shorts, so Blaze3D binds it as an integer attribute, but packs declare it as attribute vec4 mc_Entity. Mods rendering custom blocks through assignPipeline can supply a block ID and packs can apply the block ID material instead of getting nothing.

Im pretty sure that at_midBlock has the same issue but I haven't touched it.

@IMS212
IMS212 merged commit f4c0697 into IrisShaders:26.1 Aug 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants