From ff53d818f23e691459f2d82d3970f28a7e8a5b0a Mon Sep 17 00:00:00 2001 From: Frank Mayer Date: Mon, 8 Jan 2024 14:50:01 +0100 Subject: [PATCH] darker distance --- engine/firstperson/raycaster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/firstperson/raycaster.go b/engine/firstperson/raycaster.go index 8a4aa36..05023fb 100644 --- a/engine/firstperson/raycaster.go +++ b/engine/firstperson/raycaster.go @@ -211,7 +211,7 @@ func renderWalls() error { return err } // distant walls are darker - darkness := uint8(int32((depth+1)*255) / maxDepth) + darkness := uint8(int32((depth+1)*255) / 64) err = core.Renderer().SetDrawColor(0, 0, 0, darkness) if err != nil { return err