Skip to content

Commit

Permalink
Sign of life
Browse files Browse the repository at this point in the history
- Move all text handling into the TextVisual class
- Add SignVisual
- Flesh out the glyph model cache
- Render effect glyphs
- Clean up variable names
  • Loading branch information
Jozufozu committed Sep 25, 2024
1 parent 70551a3 commit 463f60a
Show file tree
Hide file tree
Showing 6 changed files with 513 additions and 213 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public void onLightUpdate(SectionPos sectionPos, LightLayer layer) {
@Override
public void setupRender(RenderContext context) {
try (var state = GlStateTracker.getRestoreState()) {
// Process the render queue for font updates
RenderSystem.replayQueue();
Uniforms.update(context);
environmentStorage.flush();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ public GlyphInstance color(int red, int green, int blue) {
return color((byte) red, (byte) green, (byte) blue);
}

public GlyphInstance color(float red, float green, float blue, float alpha) {
return color((byte) (red * 255f), (byte) (green * 255f), (byte) (blue * 255f), (byte) (alpha * 255f));
}

public GlyphInstance color(byte red, byte green, byte blue, byte alpha) {
this.red = red;
this.green = green;
Expand Down

This file was deleted.

Loading

0 comments on commit 463f60a

Please sign in to comment.