Skip to content

Commit

Permalink
Merge pull request #382 from RagnarokResearchLab/update-clear-color
Browse files Browse the repository at this point in the history
Change the default scene clear color to BLACK
  • Loading branch information
rdw-software authored Feb 27, 2024
2 parents ef85682 + a2e53d6 commit 187f8a4
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 187f8a4

Please sign in to comment.