alpha-blend translucent block and entity texels (stained glass, slime skin, text backgrounds)

This commit is contained in:
MineTec committed 2026-11-04 13:49:45 +01:00
1 parent 37fa1d8f56
commit 9a6c8b538d
8 files changed
+283 -110

No files matched your search

+3 -2
View File
@@ -82,9 +82,10 @@ public class ObjectTestRender {
objs.add(obj(ObjectState.Kind.TEXT,
Affine.translation(1.5, 3.0, 0).mul(Affine.rotY(Math.PI)).mul(Affine.scale(0.025)), null, null,
List.of("Hallo PixelPics!", "Zeile zwei äöü"), 0xFF203040));
// Text seen from the BACK (front faces +Z, camera is on -Z) and a shield item.
// Text seen from the BACK (front faces +Z, camera is on -Z) on the vanilla default 25% black
// background (blended), and a shield item.
objs.add(obj(ObjectState.Kind.TEXT, Affine.translation(-0.5, 3.0, 0).mul(Affine.scale(0.025)), null, null,
List.of("Rueckseite"), 0));
List.of("Rueckseite"), 0x40000000));
objs.add(obj(ObjectState.Kind.ITEM, Affine.translation(4, 1.0, 0.5), null, "shield", List.of(), 0));
// Dropped item (flat) on the ground.
objs.add(obj(ObjectState.Kind.ITEM, Affine.translation(-1, 0.3, 0.5).mul(Affine.scale(0.5)), null, "apple", List.of(), 0));