Skip to content

Commit

Permalink
Client: Change the default scene clear color to BLACK
Browse files Browse the repository at this point in the history
The brighter color was useful for debugging, but certain maps are designed to incorporate the background color so it looks wrong.
  • Loading branch information
rdw-software committed Feb 27, 2024
1 parent ef85682 commit a2e53d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Core/NativeClient/DebugDraw/Color.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
2 changes: 1 addition & 1 deletion Core/NativeClient/Renderer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit a2e53d6

Please sign in to comment.