Incompatibility with Caxton: Outlined text misrendered
bluebear94 opened this issue · 3 comments
Bug Description
With Caxton 0.5.3+1.20.4 and Sodium mc1.20.3-0.5.5, the interiors of glyphs in outlined text have the wrong colors. (For running in Sodium’s dev env, 33891cf for 1.20.4 or ffc0228 for 1.20.2 is required).
With Caxton and Sodium:
With Caxton alone:
I’ve traced this issue to commit fae888e. The optimized BufferBuilder
implementation introduced by this commit seems to assume that any vertex format has at most one color component. Meanwhile, Caxton uses a custom vertex format with two color components to render outlined text (see CaxtonVertexFormats, CaxtonTextRenderLayers).
Reproduction Steps
- Start Minecraft with Caxton and Sodium installed
- Enable the bundled “Sample Font: Inter” resource pack
- Enter a world and place a sign with glowing text
Log File
Crash Report
crash-2023-12-25_01.47.01-client.txt (manually triggered)
I really don't see how it would be possible for us to fix this. And that's a shame, because I actually have used this mod in the past to deal with Minecraft's very illegible font. Having multiple semantic elements of the same kind doesn't make a lot of sense (at least given my understanding of how you are using them), but I will have to think more about it after the holidays, and see if we can do something to not break mods like this.
#2240 will likely be enough to fix the problem with Caxton.
Resolved with 1cc23f1.