From a2e53d61514268dac868733ea03ef0bd0f9ef950 Mon Sep 17 00:00:00 2001 From: RDW Date: Sun, 25 Feb 2024 22:24:49 +0100 Subject: [PATCH] Client: Change the default scene clear color to BLACK The brighter color was useful for debugging, but certain maps are designed to incorporate the background color so it looks wrong. --- Core/NativeClient/DebugDraw/Color.lua | 1 + Core/NativeClient/Renderer.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/NativeClient/DebugDraw/Color.lua b/Core/NativeClient/DebugDraw/Color.lua index 23546906..0d07f73c 100644 --- a/Core/NativeClient/DebugDraw/Color.lua +++ b/Core/NativeClient/DebugDraw/Color.lua @@ -7,6 +7,7 @@ local string_sub = string.sub local transform_bold = transform.bold local Color = { + BLACK = { red = 0, green = 0, blue = 0 }, WHITE = { red = 1, green = 1, blue = 1 }, RED = { red = 1, green = 0, blue = 0 }, GREEN = { red = 0, green = 1, blue = 0 }, diff --git a/Core/NativeClient/Renderer.lua b/Core/NativeClient/Renderer.lua index 25990c4a..8cd72ca8 100644 --- a/Core/NativeClient/Renderer.lua +++ b/Core/NativeClient/Renderer.lua @@ -48,7 +48,7 @@ local DEFAULT_SUNLIGHT_COLOR = DEFAULT_AMBIENT_COLOR local DEFAULT_SUNLIGHT_DIRECTION = { x = 1, y = -1, z = 1 } local Renderer = { - clearColorRGBA = { Color.GREY.red, Color.GREY.green, Color.GREY.blue, 0 }, + clearColorRGBA = { Color.BLACK.red, Color.BLACK.green, Color.BLACK.blue, 0 }, userInterfaceTexturesToMaterial = {}, meshes = {}, ambientLight = {