Sodium

Sodium

35M Downloads

Incompatibility with Caxton: Outlined text misrendered

bluebear94 opened this issue · 3 comments

commented

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:

2023-12-24_16 41 43

With Caxton alone:

2023-12-24_17 38 03

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

  1. Start Minecraft with Caxton and Sodium installed
  2. Enable the bundled “Sample Font: Inter” resource pack
  3. Enter a world and place a sign with glowing text

Log File

latest.log

Crash Report

crash-2023-12-25_01.47.01-client.txt (manually triggered)

commented

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.

commented

#2240 will likely be enough to fix the problem with Caxton.

commented

Resolved with 1cc23f1.