Skip to content

Commit

Permalink
Implement translucent block item rendering for inventory/hotbar (prev…
Browse files Browse the repository at this point in the history
…iously not supported)
  • Loading branch information
stackotter committed Jun 8, 2024
1 parent be4a1ea commit bb30d91
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/Core/Renderer/GUI/GUIRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public final class GUIRenderer: Renderer {

var vertices: [GUIVertex] = []
vertices.reserveCapacity(geometry.vertices.count)
for vertex in geometry.vertices {
for vertex in geometry.vertices + translucentGeometry.vertices {
vertices.append(
GUIVertex(
position: [vertex.x, vertex.y],
Expand All @@ -278,7 +278,6 @@ public final class GUIRenderer: Renderer {
)
}

// TODO: Handle translucent block items
var mesh = GUIElementMesh(
size: [16, 16],
arrayTexture: blockArrayTexture,
Expand Down

0 comments on commit bb30d91

Please sign in to comment.