From d20d99d19fd6b355253f947e5f3185dc2f98e337 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Fri, 28 Jun 2024 16:57:05 +0200 Subject: [PATCH] alpha channel temp fix --- mapblockrenderer/renderer.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mapblockrenderer/renderer.go b/mapblockrenderer/renderer.go index 3118f44..cae4b72 100644 --- a/mapblockrenderer/renderer.go +++ b/mapblockrenderer/renderer.go @@ -142,6 +142,9 @@ func (r *MapBlockRenderer) Render(pos1, pos2 *types.MapBlockCoords) (*image.NRGB continue } + // clamp alpha channel to max + c.A = 255 + if r.enableShadow { var left, leftAbove, top, topAbove string