Sable Vertex Layout Fix
A focused client addon that keeps Sable's stored chunk mesh format and its OpenGL vertex layout consistent when Iris is installed.
The problem
Some Sable sublevel geometry can stretch into long planes when a buffer containing 32-byte block vertices is interpreted using a 52-byte layout. Reloading chunks may temporarily hide the symptom while the underlying format mismatch remains.
Why it happens
Iris can replace the standard block format with its extended terrain format during vertex attribute setup. A persistent Sable section buffer may already contain data in the standard format. The uploaded mesh's stored format and the GPU layout then disagree, even when the vertex coordinates and indices are valid.
Scope of the fix
- Track the persistent section buffers created by Sable's vanilla chunk renderer.
- Set up and clear their vertex attributes using the mesh's actual stored format, without a second Iris format extension.
- Restore the previous Iris state in
finally, including nested calls and exceptions. - Remove ownership records when Sable closes the section buffers; use weak references for the remaining records.
Other buffers keep their existing setup and clear operations. Geometry, chunk contents, rebuild scheduling, shaders, recipes, world data and server physics retain their original behavior. The addon performs no periodic chunk reload or background rebuild.
Compatibility
- Minecraft 1.21.1, Java 21.
- NeoForge 21.1.235 exactly.
- Sable 2.0.3 exactly, installed separately.
- Iris is optional; the supported installed version is 1.8.14-beta.1+mc1.21.1.
- Install on affected clients only.
Without Iris, the helper follows the original operations; that branch has offline contract checks. A complete game session without Iris has not been verified for this package. Other Sable/Iris versions and other rendering backends need separate checks. The patch targets Sable's vanilla chunk-section path; it does not change the separate single-block rendering path.
Use one copy of mod ID steamsteel_sable_layout. This public package replaces the internal 1.0.1 addon and must not be combined with it. SteamSteelCore, Companion and the full server modpack are not required. The withdrawn internal 1.0.0 package must not be used.
From Steam & Steel
The addon originated in Steam & Steel SMP, our custom Minecraft 1.21.1 NeoForge server modpack, during investigation of stretched sublevel geometry. It is available independently of the full modpack.
Acknowledgements
Sable is by RyanHCode and its contributors. Iris is by the Iris team. Their original code and artwork retain their own licenses and are obtained with the original mods. No upstream classes, models or textures are bundled here.
This is an independent community addon.
Beta / Feedback
This is a beta release. The internal 1.0.1 fix loaded in the owner's client and passed a live test using a disposable GPU buffer: the original 32/52 mismatch was reproduced, and registered buffers followed 52/52, 32/32 and 52/52 transitions correctly. A later source-side snapshot recorded 111 guarded buffers with no layout mismatches. Those observations do not establish sustained visual acceptance or explain every possible rendering artifact.
The standalone package preserves all six implementation classes. Its local checks cover actual Sponge Mixin application on two client targets, exclusion of both targets on the server, ownership and Iris-state restoration, and rejection of the observed old packaging error. Separate standalone startup, GPU execution and long visual/AFK checks remain unverified.
Please report crashes, errors or unexpected behavior in the project comments with your Minecraft, NeoForge, Sable, Iris and addon versions, shader pack, renderer backend and steps to reproduce the problem. We will investigate reported bugs and work on fixes.
License
Own addon code and original project artwork are licensed under BSD 3-Clause. Copyright (c) 2026, DanielBasov (Steam & Steel). Forks, fixes and redistribution are permitted; retain the full author attribution, license conditions and disclaimer in source distributions and in the materials accompanying binary distributions. A fork may not imply endorsement by the original author.
The icon uses an original model and matte pixel textures. Upstream mods retain their separate licenses.